summaryrefslogtreecommitdiff
path: root/src/time/struct_tm.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
commit7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f (patch)
tree092ab0aed1769117fd7b28b8592f6f96b0e0d5af /src/time/struct_tm.c
parent6acf19370e8adff79cd83b257d3f04aeaf2a59dd (diff)
merge sources into single tree
Diffstat (limited to 'src/time/struct_tm.c')
-rw-r--r--src/time/struct_tm.c23
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)
+*/