From 7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 8 Feb 2019 18:42:39 -0500 Subject: merge sources into single tree --- src/time/struct_tm.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/time/struct_tm.c (limited to 'src/time/struct_tm.c') 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 + +/** 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) +*/ -- cgit v1.2.1