2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_TIME_TIME_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_TIME_TIME_H_
|
2022-09-05 21:43:49 -07:00
|
|
|
|
|
|
|
#define TIME_UTC 1
|
|
|
|
#define CLOCKS_PER_SEC 1000000L
|
|
|
|
|
2020-06-15 07:18:57 -07:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-11-08 11:39:50 -08:00
|
|
|
_Hide extern const char kWeekdayNameShort[7][4];
|
|
|
|
_Hide extern const char kWeekdayName[7][10];
|
|
|
|
_Hide extern const char kMonthNameShort[12][4];
|
|
|
|
_Hide extern const char kMonthName[12][10];
|
|
|
|
_Hide extern const unsigned short kMonthYearDay[2][12];
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
extern char *tzname[2];
|
2022-04-28 09:42:36 -07:00
|
|
|
extern long timezone;
|
|
|
|
extern int daylight;
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
char *ctime(const int64_t *);
|
2022-09-13 04:14:20 -07:00
|
|
|
char *ctime_r(const int64_t *, char[hasatleast 26]);
|
2023-04-26 20:45:01 -07:00
|
|
|
double difftime(int64_t, int64_t)
|
|
|
|
dontthrow pureconst;
|
2020-06-15 07:18:57 -07:00
|
|
|
extern long double (*nowl)(void);
|
2022-08-13 13:11:56 -07:00
|
|
|
int64_t clock(void);
|
|
|
|
int64_t posix2time(int64_t) pureconst;
|
|
|
|
int64_t time(int64_t *);
|
|
|
|
int64_t time2posix(int64_t) pureconst;
|
2021-02-02 03:45:31 -08:00
|
|
|
long double ConvertTicksToNanos(uint64_t);
|
2022-08-13 13:11:56 -07:00
|
|
|
long double dsleep(long double);
|
|
|
|
long double dtime(int);
|
|
|
|
unsigned alarm(unsigned);
|
|
|
|
unsigned sleep(unsigned);
|
2021-04-23 10:45:19 -07:00
|
|
|
void RefreshTime(void);
|
2022-08-13 13:11:56 -07:00
|
|
|
void tzset(void);
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_TIME_TIME_H_ */
|