libtime++: Date and time calculation

◆ timeutil_add()

void timeutil_add ( timeutil_Ttime ,
timeutil_Ttime  ,
timeutil_Ttime   
)

Definition at line 236 of file timeutil.c.

References timeutil_Ttime::doy, timeutil_Ttime::hour, timeutil_Ttime::min, timeutil_Ttime::msec, timeutil_Ttime::sec, timeutil_norm(), timeutil_Ttime::usec, and timeutil_Ttime::year.

Referenced by main().

240 {
241  sum->usec =td1.usec +td2.usec;
242  sum->msec =td1.msec +td2.msec;
243  sum->sec =td1.sec +td2.sec;
244  sum->min =td1.min +td2.min;
245  sum->hour =td1.hour +td2.hour;
246  sum->doy =td1.doy +td2.doy;
247  sum->year =td1.year +td2.year;
248  timeutil_norm(sum);
249 } /* timeutil_add */
void timeutil_norm(timeutil_Ttime *td)
Definition: timeutil.c:187
Here is the call graph for this function:
Here is the caller graph for this function: