libtime++: Date and time calculation

◆ timeutil_print()

char* timeutil_print ( timeutil_Ttime  td)

Definition at line 78 of file timeutil.c.

References timeutil_finish().

Referenced by main().

80 {
81  static char string[35];
82  timeutil_finish(&td);
83  sprintf(string, "%3d %2.2d/%2.2d/%4.4d %2.2d:%2.2d:%2.2d.%3.3d%3.3d",
84  td.doy, td.day, td.month, td.year,
85  td.hour, td.min, td.sec, td.msec, td.usec);
86  return string;
87 } /* timeutil_print */
long int doy
Definition: timeutil.h:58
long int month
Definition: timeutil.h:58
long int msec
Definition: timeutil.h:59
long int sec
Definition: timeutil.h:59
void timeutil_finish(timeutil_Ttime *td)
Definition: timeutil.c:95
long int hour
Definition: timeutil.h:59
long int day
Definition: timeutil.h:58
long int usec
Definition: timeutil.h:59
long int min
Definition: timeutil.h:59
long int year
Definition: timeutil.h:58
Here is the call graph for this function:
Here is the caller graph for this function: