diff options
Diffstat (limited to 'csrc')
-rw-r--r-- | csrc/rich4_time.c | 17 | ||||
-rw-r--r-- | csrc/rich4_time.h | 16 |
2 files changed, 0 insertions, 33 deletions
diff --git a/csrc/rich4_time.c b/csrc/rich4_time.c deleted file mode 100644 index fafac33..0000000 --- a/csrc/rich4_time.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com> - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -#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; -} diff --git a/csrc/rich4_time.h b/csrc/rich4_time.h deleted file mode 100644 index 0f88d28..0000000 --- a/csrc/rich4_time.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com> - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -#include <stdint.h> - -typedef struct -{ - uint8_t day; - uint8_t month; - uint16_t year; - uint16_t dayofweek; -} rich4_time; - -void get_local_time(rich4_time *t); |