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
17
extern
"C"
{
18
#endif
19
23
typedef
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
;
40
}
datetime_t
;
41
47
extern
void
GetSysTime
(
datetime_t
*dt);
48
49
#ifdef __cplusplus
50
}
// extern "C"
51
#endif
52
53
#endif
// __MUTEKI_DATETIME_H__
common.h
Common include file for all muteki-shims headers.
GetSysTime
void GetSysTime(datetime_t *dt)
Read current time of the day and store it in dt.
datetime_t
The datetime struct used by GetSysTime() and SetSysTime().
Definition
datetime.h:23
datetime_t::millis
short millis
Definition
datetime.h:39
datetime_t::day
short day
Definition
datetime.h:31
datetime_t::year
short year
Definition
datetime.h:25
datetime_t::hour
short hour
Definition
datetime.h:33
datetime_t::month
short month
Definition
datetime.h:27
datetime_t::weekday
short weekday
Definition
datetime.h:29
datetime_t::second
short second
Definition
datetime.h:37
datetime_t::minute
short minute
Definition
datetime.h:35
include
muteki
datetime.h
Generated by
1.9.8