| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __CTIME_H_
- #define __CTIME_H_
- #include "time.h"
- #include "stdint.h"
- #define DST_NONE 0
- typedef long suseconds_t; /* microseconds. */
- struct timeval
- {
- time_t tv_sec; /* seconds */
- suseconds_t tv_usec; /* and microseconds */
- };
- struct timezone
- {
- int tz_minuteswest; /* minutes west of Greenwich */
- int tz_dsttime; /* type of dst correction */
- };
- void fr_tz_set(int32_t offset_sec);
- int32_t fr_tz_get(void);
- time_t timegm(struct tm * const t);
- struct tm *gmtime_r(const time_t *timep, struct tm *r);
- int gettimeofday(struct timeval *tv, struct timezone *tz);
- #endif
|