MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #ifndef LPC_TIME_H_ |
| 2 | #define LPC_TIME_H_ 1 |
| 3 | |
| 4 | /* Indices into the array returned from gmtime() and localtime(). */ |
| 5 | |
| 6 | #define TM_SEC 0 /* Seconds (0..59) */ |
| 7 | #define TM_MIN 1 /* Minutes (0..59) */ |
| 8 | #define TM_HOUR 2 /* Hours (0..23) */ |
| 9 | #define TM_MDAY 3 /* Day of the month (1..31) */ |
| 10 | #define TM_MON 4 /* Month of the year (0..11) */ |
| 11 | #define TM_YEAR 5 /* Year (e.g. 2001) */ |
| 12 | #define TM_WDAY 6 /* Day of the week (Sunday = 0) */ |
| 13 | #define TM_YDAY 7 /* Day of the year (0..365) */ |
| 14 | #define TM_ISDST 8 /* TRUE: Daylight saving time */ |
| 15 | |
| 16 | #define TM_MAX 9 /* Number of entries in the array */ |
| 17 | |
| 18 | #endif /* LPC_TIME_H_ */ |