Logo Search packages:      
Sourcecode: libical version File versions

int icaltime_day_of_week ( const struct icaltimetype  t  ) 

Return the day of the week of the given time. Sunday is 1

Definition at line 604 of file icaltime.c.

References juldat().

                                                     {
      UTinstant jt;

      memset(&jt,0,sizeof(UTinstant));

      jt.year = t.year;
    jt.month = t.month;
    jt.day = t.day;
    jt.i_hour = 0;
    jt.i_minute = 0;
    jt.i_second = 0;

      juldat(&jt);

      return jt.weekday + 1;
}


Generated by  Doxygen 1.6.0   Back to index