|
Home > Archive > Unix questions > March 2007 > Files affected by DST?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Files affected by DST?
|
|
| Ramon F Herrera 2007-03-19, 1:29 pm |
|
I wrote this in another NG:
"AFAIK, the only files affected by the DST change are all under /usr/
share/zoneinfo,
and you can copy them among other unixes."
Am I right?
-Ramon
| |
| Ramon F Herrera 2007-03-19, 1:29 pm |
| On Mar 19, 11:16 am, "Ramon F Herrera" <r...@conexus.net> wrote:
> I wrote this in another NG:
>
> "AFAIK, the only files affected by the DST change are
> all under /usr/share/zoneinfo,
> and you can copy them among other unixes."
>
> Am I right?
>
> -Ramon
The typing of:
% rpm -q tzdata
% rpm -ql tzdata
seems to confirm my suspicions, about Linux anyway. What about
Solaris, HP-UX, AIX, BSD? (I don't give a rat's XXX about SCO).
-Ramon
| |
|
| "Ramon F Herrera" <ramon@conexus.net> writes:
>I wrote this in another NG:
>"AFAIK, the only files affected by the DST change are all under /usr/
>share/zoneinfo,
>and you can copy them among other unixes."
>Am I right?
/etc/localtime
which is a copy of the zoneinfo file for your timezone.
Not sure if all of the unixes use exactly the same binary representation of
the timezone files as derived from the tzdata file.
Probably best would be to compile the timezone files from the tzdata
files.
Note also that not all unixes store the files in /usr/share/zoneinfo.
>-Ramon
| |
| Darren Dunham 2007-03-19, 1:29 pm |
| In comp.unix.solaris Ramon F Herrera <ramon@conexus.net> wrote:
> On Mar 19, 11:16 am, "Ramon F Herrera" <r...@conexus.net> wrote:
Mostly.
[vbcol=seagreen]
> The typing of:
> % rpm -q tzdata
> % rpm -ql tzdata
> seems to confirm my suspicions, about Linux anyway. What about
> Solaris, HP-UX, AIX, BSD? (I don't give a rat's XXX about SCO).
There is an additional complication if you use a POSIX timezone where
the dates are calculated rather than read directly.
As an example, on Solaris:
TZ=:EST5EDT
will use the /usr/share/lib/zoneinfo/EST5EDT. But if you use:
TZ=EST5EDT
then the libc library will calculate the dates based on hardcoded rules
in the library. So if you have an old libc, then it's not completely
updated.
Now, you probably shouldn't be doing this, but if you are, it's
something to watch out for.
Change to 'US/Eastern' or 'America/New_York' instead.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
|
|
|