FW: Question about 'tzparse()'
Olson, Arthur David (NIH/NCI) [E]
olsona at dc37a.nci.nih.gov
Mon Jul 31 12:52:25 UTC 2006
David Lawless is not on the time zone mailing list; direct replies
appropriately.
(Note that in line with old-line Quaker practice, I myself don't use the
"Mr." title.)
--ado
-----Original Message-----
From: David Lawless [mailto:lawless at spamcop.net]
Sent: Friday, July 28, 2006 1:50 PM
To: Olson, Arthur David (NIH/NCI) [E]; tz at lecserver.nci.nih.gov
Subject: Question about 'tzparse()'
Mr. Olson,
I'm wondering about line 920 in 'tzparse()' in 'localtime.c':
917 load_result = tzload(TZDEFRULES, sp, FALSE);
918 if (load_result != 0)
919 sp->leapcnt = 0; /* so, we're off a little */
920 sp->timecnt = 0;
921 if (*name != '\0') {
922 if (*name == '<') {
923 dstname = ++name;
It appears to have the effect of inhibiting the application of DST per
'/usr/local/etc/timezone/posixrules' when a TZ string such as
TZ="EST+5EDT" is used. If the line is removed DST is applied.
The effective default if 'posixrules' is not readable, per
TZDEFRULESTRING, is TZ="EST+5EDT,M4.1.0,M10.5.0" which does lead to the
application of DST.
Also RHEL 4.3 (CentOS 4.3) appears to apply DST when TZ="EST+5EDT".
Does 'tzparse()' behave in this manner by design?
Thank you for your efforts and contribution of the excellent.
zone package.
Sincerely,
David Lawless
More information about the tz
mailing list