1 testdata/zoneinfo contains time-zone data files that may be used with CCTZ.
2 Install them in a location referenced by the ${TZDIR} environment variable.
3 Symbolic and hard links have been eliminated for portability.
5 On Linux systems the distribution's versions of these files can probably
6 already be found in the default ${TZDIR} location, /usr/share/zoneinfo.
8 New versions can be generated using the following shell script.
13 trap "rm -fr ${DESTDIR}" 0 2 15
16 git clone https://github.com/eggert/tz.git
18 install DESTDIR=${DESTDIR} \
24 ZONETABLES=zone1970.tab
25 tar --create --dereference --hard-dereference --file tzfile.tar \
26 --directory=tz tzfile.h
27 tar --create --dereference --hard-dereference --file zoneinfo.tar \
28 --exclude=zoneinfo/posixrules zoneinfo \
29 --directory=tz version
31 tar --extract --directory src --file ${DESTDIR}/tzfile.tar
32 tar --extract --directory testdata --file ${DESTDIR}/zoneinfo.tar
35 To run the CCTZ tests using the testdata/zoneinfo files, execute:
37 bazel test --test_env=TZDIR=${PWD}/testdata/zoneinfo ...