mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
b0df6c1fce
Cosmopolitan now supports 104 time zones. They're embedded inside any binary that links the localtime() function. Doing so adds about 100kb to the binary size. This change also gets time zones working properly on Windows for the first time. It's not needed to have /etc/localtime exist on Windows, since we can get this information from WIN32. We're also now updated to the latest version of Paul Eggert's TZ library.
15 lines
578 B
C
15 lines
578 B
C
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_TIMEZONEINFORMATION_H_
|
|
#define COSMOPOLITAN_LIBC_NT_STRUCT_TIMEZONEINFORMATION_H_
|
|
#include "libc/nt/struct/systemtime.h"
|
|
|
|
struct NtTimeZoneInformation {
|
|
int Bias; /* in minutes e.g. +480 for -8:00 */
|
|
char16_t StandardName[32]; /* e.g. "Pacific Standard Time" */
|
|
struct NtSystemTime StandardDate;
|
|
int StandardBias;
|
|
char16_t DaylightName[32]; /* e.g. "Pacific Daylight Time" */
|
|
struct NtSystemTime DaylightDate;
|
|
int DaylightBias; /* e.g. -60 */
|
|
};
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_TIMEZONEINFORMATION_H_ */
|