XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
time.h
Go to the documentation of this file.
1
30
#ifndef __TIME_H__
31
#define __TIME_H__
32
33
#include <
stdint.h
>
34
#include <
aurora.h
>
35
36
#ifdef __cplusplus
37
AU_EXTERN
{
38
#endif
39
40
#pragma pack(push,1)
41
typedef
struct
_time_
{
42
uint8_t
century
;
43
uint8_t
year
;
44
uint8_t
month
;
45
uint8_t
day
;
46
uint8_t
hour
;
47
uint8_t
minute
;
48
uint8_t
second
;
49
}
AuTime
;
50
#pragma pack(pop)
51
52
typedef
struct
_timeval_
{
53
long
tv_sec
;
54
long
tv_usec
;
55
}
timeval
;
56
57
/*
58
* AuGetCurrentTime -- get current time
59
* @param time -- pointer to time memory area
60
*/
61
AU_EXPORT
void
AuGetCurrentTime
(
AuTime
*
time
);
62
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif
AU_EXTERN
#define AU_EXTERN
Definition
aurora.h:50
AU_EXPORT
#define AU_EXPORT
Definition
aurora.h:38
AuGetCurrentTime
AU_EXPORT void AuGetCurrentTime(AuTime *time)
Definition
time.cpp:37
timeval
struct _timeval_ timeval
AuTime
struct _time_ AuTime
stdint.h
time
XE_LIB time_t time(time_t *t)
Definition
time.cpp:162
aurora.h
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
_time_
Definition
time.h:41
_time_::second
uint8_t second
Definition
time.h:48
_time_::minute
uint8_t minute
Definition
time.h:47
_time_::hour
uint8_t hour
Definition
time.h:46
_time_::century
uint8_t century
Definition
time.h:42
_time_::year
uint8_t year
Definition
time.h:43
_time_::month
uint8_t month
Definition
time.h:44
_time_::day
uint8_t day
Definition
time.h:45
_timeval_
Definition
time.h:52
_timeval_::tv_sec
long tv_sec
Definition
time.h:53
_timeval_::tv_usec
long tv_usec
Definition
time.h:54
Generated by
1.9.8