Difference for common/time.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_time_c =   * static char *rcsid_time_c =
  *    "$Id: time.c,v 1.8 2001/12/18 08:58:03 garbled Exp $";   *    "$Id: time.c,v 1.9 2001/12/19 21:03:44 garbled Exp $";
  */   */
   
 /*  /*
Line 222
 
Line 222
 get_tod(timeofday_t *tod)  get_tod(timeofday_t *tod)
 {  {
   tod->year = todtick/HOURS_PER_YEAR;    tod->year = todtick/HOURS_PER_YEAR;
   tod->month = todtick/HOURS_PER_MONTH;    tod->month = (todtick/HOURS_PER_MONTH)%MONTHS_PER_YEAR;
   tod->day = (todtick%HOURS_PER_MONTH)/DAYS_PER_MONTH;    tod->day = (todtick%HOURS_PER_MONTH)/DAYS_PER_MONTH;
   tod->dayofweek = tod->day%DAYS_PER_WEEK;    tod->dayofweek = tod->day%DAYS_PER_WEEK;
   tod->hour = todtick%HOURS_PER_DAY;    tod->hour = todtick%HOURS_PER_DAY;


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:18