| Line | |
|---|
| 1 | #include "ministd.h" |
|---|
| 2 | |
|---|
| 3 | #ifndef _TIME_T_DEFINED |
|---|
| 4 | #define _TIME_T_DEFINED |
|---|
| 5 | typedef long time_t; |
|---|
| 6 | #endif |
|---|
| 7 | |
|---|
| 8 | #ifndef _TM_DEFINED |
|---|
| 9 | #define _TM_DEFINED |
|---|
| 10 | |
|---|
| 11 | struct tm { |
|---|
| 12 | int tm_sec; // Seconds after the minute [0, 59] |
|---|
| 13 | int tm_min; // Minutes after the hour [0, 59] |
|---|
| 14 | int tm_hour; // Hours since midnight [0, 23] |
|---|
| 15 | int tm_mday; // Day of the month [1, 31] |
|---|
| 16 | int tm_mon; // Months since January [0, 11] |
|---|
| 17 | int tm_year; // Years since 1900 |
|---|
| 18 | int tm_wday; // Days since Sunday [0, 6] |
|---|
| 19 | int tm_yday; // Days since January 1 [0, 365] |
|---|
| 20 | int tm_isdst; // Daylight Saving Time flag |
|---|
| 21 | int tm_gmtoff; // Seconds east of UTC |
|---|
| 22 | char *tm_zone; // Timezone abbreviation |
|---|
| 23 | }; |
|---|
| 24 | |
|---|
| 25 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.