112 |
7u83 |
1 |
#ifndef __TENDRA_TIME_H
|
|
|
2 |
#define __TENDRA_TIME_H
|
|
|
3 |
|
|
|
4 |
#include <sys/types.h>
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
struct tm {
|
|
|
8 |
int tm_sec; /* seconds after the minute [0-60] */
|
|
|
9 |
int tm_min; /* minutes after the hour [0-59] */
|
|
|
10 |
int tm_hour; /* hours since midnight [0-23] */
|
|
|
11 |
int tm_mday; /* day of the month [1-31] */
|
|
|
12 |
int tm_mon; /* months since January [0-11] */
|
|
|
13 |
int tm_year; /* years since 1900 */
|
|
|
14 |
int tm_wday; /* days since Sunday [0-6] */
|
|
|
15 |
int tm_yday; /* days since January 1 [0-365] */
|
|
|
16 |
int tm_isdst; /* Daylight Savings Time flag */
|
|
|
17 |
long tm_gmtoff; /* offset from UTC in seconds */
|
|
|
18 |
char *tm_zone; /* timezone abbreviation */
|
|
|
19 |
};
|
|
|
20 |
|
|
|
21 |
/* Frequency of the clock ticks reported by clock(). */
|
|
|
22 |
#define CLOCKS_PER_SEC 128
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
typedef unsigned long clock_t;
|
|
|
26 |
/*typedef unsigned long time_t;*/
|
|
|
27 |
|
|
|
28 |
/*
|
|
|
29 |
* Frequency of the clock ticks reported by times(). Deprecated - use
|
|
|
30 |
* sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
|
|
|
31 |
*/
|
|
|
32 |
#define CLK_TCK 128
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
#endif
|
|
|
37 |
|