cosmopolitan/third_party/tz
Justine Tunney b0df6c1fce
Implement proper time zone support
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.
2024-05-04 23:06:37 -07:00
..
asctime.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
BUILD.mk Implement proper time zone support 2024-05-04 23:06:37 -07:00
ctime.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
ctime_r.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
daylight.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
difftime.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
LICENSE Implement proper time zone support 2024-05-04 23:06:37 -07:00
localtime.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
private.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
README.cosmo Implement proper time zone support 2024-05-04 23:06:37 -07:00
strftime.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
timezone.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
tzdir.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
tzfile.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
tzname.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
windows.py Implement proper time zone support 2024-05-04 23:06:37 -07:00

DESCRIPTION

  tz is a library for handling time zones

LICENSE

  See LICENSE file

ORIGIN

  git@github.com:eggert/tz.git
  a75a6251d30b28a7badc1763296205adf67a5081
  Paul Eggert <eggert@cs.ucla.edu>

BUILD PROCESS

  make -j8 install BACKWARD= DESTDIR=stage REDO=posix_only

LOCAL CHANGES

  - Add aliases for legacy Cosmo timezone names.
  - Add yoinks for embedding time zones in binary.
  - Make localtime() posix thread cancelation safe.
  - Improve readabiilty with "localtime_" prefixes.
  - Automate the TZ environment variable on Windows.