Rev 64514 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
localtime.c is a stripped-down version of that from tzcode, fromhttp://www.iana.org/time-zones, converted to use a 64-bit time_t onall platforms. Apart from removing unused code and merging in theparts of private.h which are needed, the other main changes are- to use environment variable TZDIR to point to the zoneinfo files, andfailing that, R_HOME/share/zoneinfo.- to call getTZinfo() to get the default timezone if TZ is unset.zoneinfo.zip was formed by installing tzdata on a system with zic, andzipping up the results, after adding a file VERSION giving theversion. It should be possible to build the compiled databases onWindows, but zic.c assumes links and so would need work. (The binarydatabases are byte streams, and so do not depend on the architecture.There are some comments about whether time_t is signed, which it is onall sensible platforms.)To remake it, download the current version of tzdataXXXXx.tar.gz fromhttp://www.iana.org/time-zones to this directory and runmake -f Make.zi VERSION=2013ifor the appropriate version. If zic is not on the path, use something likemake -f Make.zi VERSION=2013i ZIC=/usr/sbin/zicNB: it seems that this needs to be done on a system with 64-bit time_tor the catalogs will be confined to 1902-2038.