TianoCore EDK2 master
Loading...
Searching...
No Matches
ConstantTimeClock.c
Go to the documentation of this file.
1
20#include <Base.h>
22
23typedef int time_t;
24
25//
26// Structures Definitions
27//
28struct tm {
29 int tm_sec; /* seconds after the minute [0-60] */
30 int tm_min; /* minutes after the hour [0-59] */
31 int tm_hour; /* hours since midnight [0-23] */
32 int tm_mday; /* day of the month [1-31] */
33 int tm_mon; /* months since January [0-11] */
34 int tm_year; /* years since 1900 */
35 int tm_wday; /* days since Sunday [0-6] */
36 int tm_yday; /* days since January 1 [0-365] */
37 int tm_isdst; /* Daylight Savings Time flag */
38 long tm_gmtoff; /* offset from CUT in seconds */
39 char *tm_zone; /* timezone abbreviation */
40};
41
42//
43// -- Time Management Routines --
44//
45
47time_t
48time (
49 time_t *timer
50 )
51{
52 if (timer != NULL) {
53 *timer = 0;
54 }
55
56 return 0;
57}
58
60struct tm *
62 const time_t *timer
63 )
64{
65 return NULL;
66}
67
69time_t
71 time_t *t
72 )
73{
74 return time (t);
75}
time_t time(time_t *)
struct tm * gmtime(const time_t *)
#define NULL
Definition: Base.h:319
time_t _time64(time_t *t)