| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| zoneinfo/ | 03-May-2024 | - | 650 | 648 | ||
| README.zoneinfo | D | 03-May-2024 | 1.5 KiB | 43 | 37 | |
| version | D | 03-May-2024 | 6 | 2 | 1 |
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 if [ -n "${USE_GLOBAL_TZ}" ] 17 then 18 git clone -b global-tz https://github.com/JodaOrg/global-tz.git tz 19 else 20 git clone https://github.com/eggert/tz.git 21 fi 22 make --directory=tz \ 23 install DESTDIR=${DESTDIR} \ 24 DATAFORM=vanguard \ 25 TZDIR=/zoneinfo \ 26 REDO=posix_only \ 27 LOCALTIME=Factory \ 28 TZDATA_TEXT= \ 29 ZONETABLES=zone1970.tab 30 tar --create --dereference --hard-dereference --file tzfile.tar \ 31 --directory=tz tzfile.h 32 tar --create --dereference --hard-dereference --file zoneinfo.tar \ 33 --exclude=zoneinfo/posixrules zoneinfo \ 34 --directory=tz version 35 ) 36 tar --extract --directory src --file ${DESTDIR}/tzfile.tar 37 tar --extract --directory testdata --file ${DESTDIR}/zoneinfo.tar 38 exit 0 39 40To run the CCTZ tests using the testdata/zoneinfo files, execute: 41 42 bazel test --test_env=TZDIR=${PWD}/testdata/zoneinfo ... 43