Name Date Size #Lines LOC

..--

zoneinfo/H25-Apr-2025-960957

README.zoneinfoH A D25-Apr-20251.4 KiB3933

versionH A D25-Apr-20256 21

README.zoneinfo

1testdata/zoneinfo contains time-zone data files that may be used with CCTZ.
2Install them in a location referenced by the ${TZDIR} environment variable.
3Symbolic and hard links have been eliminated for portability.
4
5On Linux systems the distribution's versions of these files can probably
6already be found in the default ${TZDIR} location, /usr/share/zoneinfo.
7
8New versions can be generated using the following shell script.
9
10  #!/bin/sh -
11  set -e
12  DESTDIR=$(mktemp -d)
13  trap "rm -fr ${DESTDIR}" 0 2 15
14  (
15    cd ${DESTDIR}
16    git clone https://github.com/eggert/tz.git
17    make --directory=tz \
18        install DESTDIR=${DESTDIR} \
19                DATAFORM=vanguard \
20                TZDIR=/zoneinfo \
21                REDO=posix_only \
22                LOCALTIME=Factory \
23                TZDATA_TEXT= \
24                PACKRATDATA=backzone PACKRATLIST=zone.tab \
25                ZONETABLES=zone1970.tab\ zonenow.tab
26    tar --create --dereference --hard-dereference --file tzfile.tar \
27        --directory=tz tzfile.h
28    tar --create --dereference --hard-dereference --file zoneinfo.tar \
29        --exclude=zoneinfo/posixrules zoneinfo \
30        --directory=tz version
31  )
32  tar --extract --directory src --file ${DESTDIR}/tzfile.tar
33  tar --extract --directory testdata --file ${DESTDIR}/zoneinfo.tar
34  exit 0
35
36To run the CCTZ tests using the testdata/zoneinfo files, execute:
37
38  bazel test --test_env=TZDIR=${PWD}/testdata/zoneinfo ...
39