mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Initial import
This commit is contained in:
commit
c91b3c5006
14915 changed files with 590219 additions and 0 deletions
11
libc/time/struct/timezone.h
Normal file
11
libc/time/struct/timezone.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_TIME_STRUCT_TIMEZONE_H_
|
||||
#define COSMOPOLITAN_LIBC_TIME_STRUCT_TIMEZONE_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct timezone {
|
||||
int32_t tz_minuteswest;
|
||||
int32_t tz_dsttime;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_TIME_STRUCT_TIMEZONE_H_ */
|
20
libc/time/struct/tm.h
Normal file
20
libc/time/struct/tm.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_TIME_STRUCT_TM_H_
|
||||
#define COSMOPOLITAN_LIBC_TIME_STRUCT_TM_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct tm {
|
||||
int32_t tm_sec;
|
||||
int32_t tm_min;
|
||||
int32_t tm_hour;
|
||||
int32_t tm_mday; /* 1-indexed */
|
||||
int32_t tm_mon; /* 0-indexed */
|
||||
int32_t tm_year; /* minus 1900 */
|
||||
int32_t tm_wday;
|
||||
int32_t tm_yday;
|
||||
int32_t tm_isdst;
|
||||
int64_t tm_gmtoff;
|
||||
const char *tm_zone;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_TIME_STRUCT_TM_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue