The R Project SVN R

Rev

Rev 62397 | Rev 64317 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
43971 ripley 1
localtime.c is a stripped-down version of that from tzcode2007k, from
45809 ripley 2
ftp://elsie.nci.nih.gov/pub/ .  Apart from removing unused code and
43814 ripley 3
merging in the parts of private.h which are needed, the main changes
4
are
5
 
6
- to use environment variable TZDIR to point to the zoneinfo files, and
7
  failing that, R_HOME/share/zoneinfo.
8
 
9
- to call getTZinfo() to get the default timezone if TZ is unset.
10
 
11
 
12
zoneinfo.zip was formed by installing tzcode/tzdata on x86_64 Linux,
43971 ripley 13
and zipping up the results, after adding a file VERSION giving the
43814 ripley 14
version.  It should be possible to build the compiled databases on
15
Windows, but zic.c assumes links and so would need a lot of work.
16
(It look like the binary databases are byte streams, and so do not
17
depend on the architecture.  There are some comments about whether
18
time_t is signed, which it is on all sensible platforms.)
43815 ripley 19
 
20
To remake it, use a machine with zic in the path (it may be /usr/sbin/zic).
44833 ripley 21
Copy the current version of tzdataXXXXx.tar.gz to this directory and run
43815 ripley 22
 
62819 ripley 23
make -f Make.zi VERSION=2013c
43815 ripley 24
 
25
for the appropriate version.
57182 ripley 26
 
57461 ripley 27
[The database is now available from http://www.iana.org/time-zones .]