diff options
Diffstat (limited to 'src/time/struct_tm.c')
-rw-r--r-- | src/time/struct_tm.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/time/struct_tm.c b/src/time/struct_tm.c new file mode 100644 index 00000000..067d54f3 --- /dev/null +++ b/src/time/struct_tm.c @@ -0,0 +1,23 @@ +#include <time.h> + +/** broken-down time **/ + +struct tm { + int tm_sec; /* Seconds [0,60] */ + int tm_min; /* Minutes [0, 59] */ + int tm_hour; /* Hour [0,23] */ + int tm_mday; /* Day of the month [1,31] */ + int tm_mon; /* Month of the year [0,11] */ + int tm_year; /* Years since 1900 */ + int tm_wday; /* Day of the week [0,6] (Sunday = 0) */ + int tm_yday; /* Day of the year [0,365] */ + int tm_isdst; /* Daylight Saving Time flag */ +}; + +/*** +is used to represent time broken down into its individual components. +***/ + +/* +STDC(1) +*/ |