git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix errors in slides
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
time.h
1
#ifndef __LUNAIX_TIME_H
2
#define __LUNAIX_TIME_H
3
4
#include <stdint.h>
5
6
typedef struct
7
{
8
uint32_t year; // use int32 as we need to store the 4-digit year
9
uint8_t month;
10
uint8_t day;
11
uint8_t weekday;
12
uint8_t hour;
13
uint8_t minute;
14
uint8_t second;
15
} datetime_t;
16
17
void
18
time_getdatetime(datetime_t* datetime);
19
20
#endif /* __LUNAIX_TIME_H */