From 05bfcbae9cbe9db4797ef2703c4d37f511608fe6 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 10 May 2021 19:38:02 +0800 Subject: replace get_local_time function --- csrc/rich4_time.c | 17 ----------------- csrc/rich4_time.h | 16 ---------------- 2 files changed, 33 deletions(-) delete mode 100644 csrc/rich4_time.c delete mode 100644 csrc/rich4_time.h (limited to 'csrc') 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 - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -#include -#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 - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -#include - -typedef struct -{ - uint8_t day; - uint8_t month; - uint16_t year; - uint16_t dayofweek; -} rich4_time; - -void get_local_time(rich4_time *t); -- cgit v1.2.3