info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about cvs time


From: Larry Jones
Subject: Re: about cvs time
Date: Thu, 20 Sep 2001 12:46:17 -0400 (EDT)

David Taylor writes:
> 
> On Solaris 7, according to the man page, localtime(3) takes care of daylight
> savings time for the US  only:
[...]
> More details at Sun's "Symptoms and Resolutions"  at
> http://sunsolve.Sun.COM/pub-cgi/retrieve.pl?doc=fsrdb%2F18171&zone_128=localtime

If you actually read that article, you'll find that the usual way of
specifying your timezone (the "Olsen format") works correctly for all
timezones (assuming the database is kept up to date).  It is only the
"Posix format" that doesn't necessarily work correctly for historical
dates, and that applies to both the US and non-US.  It would appear that
the man page is sadly out-of-date with respect to the code.

> Given the difficulties of knowing rules for calculating dates for all
> regions for all times since 1970, I would be surprised if this limitation
> only existed on Solaris 7.

Given the existence of a freely available time library that handles it
correctly, I should hope the limitation doesn't exist anywhere.

-Larry Jones

In a minute, you and I are going to settle this out of doors. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]