summaryrefslogtreecommitdiff
path: root/csrc/rich4_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'csrc/rich4_time.c')
-rw-r--r--csrc/rich4_time.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/csrc/rich4_time.c b/csrc/rich4_time.c
new file mode 100644
index 0000000..058ee99
--- /dev/null
+++ b/csrc/rich4_time.c
@@ -0,0 +1,12 @@
+#include <windows.h>
+#include "rich4_time.h"
+
+void get_local_time(rich4_time *t)
+{
+ SYSTEMTIME st;
+ GetLocalTime(&st);
+ t->day = st.wDay;
+ t->month = st.wMonth;
+ t->year = st.wYear;
+ t->dayofweek = st.wDayOfWeek;
+}