summaryrefslogtreecommitdiff
path: root/src/user/include/knob/time.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-19 23:41:56 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-19 23:41:56 -0500
commit6f1b50a4cc6c232ee505a543f006abb1c6cd33cf (patch)
treec52a227440af7e3bcd07dea94504e8c2c86c411c /src/user/include/knob/time.h
parenteae7442610215e55ea350c65aab4ab3869111014 (diff)
downloadportland-os-6f1b50a4cc6c232ee505a543f006abb1c6cd33cf.tar.gz
rtc fixes, time command
Diffstat (limited to 'src/user/include/knob/time.h')
-rw-r--r--src/user/include/knob/time.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/user/include/knob/time.h b/src/user/include/knob/time.h
new file mode 100644
index 0000000..4b84697
--- /dev/null
+++ b/src/user/include/knob/time.h
@@ -0,0 +1,13 @@
+#include <stdint.h>
+
+struct time {
+ uint16_t year;//ad
+ uint8_t month;//jan = 1
+ uint8_t day;
+ uint8_t hour;//24-hour, midnight = 0
+ uint8_t minute;
+ uint8_t second;
+ uint32_t timestamp;
+};
+
+struct time get_time(); \ No newline at end of file