Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate()

[email protected] (Russ Allbery) 26 Sep 2000 15:36:44 -0700
Newsgroups perl.perl6.language.datetime
Organization The Eyrie
Message-ID <[email protected]>
Jonathan Scott Duff <[email protected]> writes:

> Do you mean local time now or local time for all time?  The former is
> easy, the latter hard.  Well, it's not hard for those places where the
> offset from UTC has remained (mostly) constant, but there are some
> places that have an offset from UTC that is a function of time more
> complex than daylight savings.

> Or would C<date()> just use C<localtime()> and punt to the OS/C
> RTL/etc.?

It should just punt.  ANSI/ISO C already requires that the C localtime
call deal with all of this.  We can look at providing our own localtime if
the system is grossly deficient in this respect, but that's an internals
rather than a language issue.

-- 
Russ Allbery ([email protected])             <http://www.eyrie.org/~eagle/>