Logo Search packages:      
Sourcecode: libical version File versions

int icaltime_day_of_year ( const struct icaltimetype  t  ) 

Return the day of the year of the given time

Returns the day of the year, counting from 1 (Jan 1st).

Definition at line 691 of file icaltime.c.

                                                     {
  int is_leap = icaltime_is_leap_year (t.year);

  return days_in_year_passed_month[is_leap][t.month - 1] + t.day;
}


Generated by  Doxygen 1.6.0   Back to index