muteki
Loading...
Searching...
No Matches
datetime.h
Go to the documentation of this file.
1/*
2 * Copyright 2021-present dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
11#ifndef __MUTEKI_DATETIME_H__
12#define __MUTEKI_DATETIME_H__
13
14#include <muteki/common.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
23typedef struct {
25 short year;
27 short month;
29 short weekday;
31 short day;
33 short hour;
35 short minute;
37 short second;
39 short millis;
41
47extern void GetSysTime(datetime_t *dt);
48
49#ifdef __cplusplus
50} // extern "C"
51#endif
52
53#endif // __MUTEKI_DATETIME_H__
Common include file for all muteki-shims headers.
void GetSysTime(datetime_t *dt)
Read current time of the day and store it in dt.
The datetime struct used by GetSysTime() and SetSysTime().
Definition datetime.h:23
short millis
Definition datetime.h:39
short day
Definition datetime.h:31
short year
Definition datetime.h:25
short hour
Definition datetime.h:33
short month
Definition datetime.h:27
short weekday
Definition datetime.h:29
short second
Definition datetime.h:37
short minute
Definition datetime.h:35