develooper Front page | perl.perl6.language.datetime | Postings from September 2000

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

Thread Previous | Thread Next
From:
Russ Allbery
Date:
September 26, 2000 15:36
Subject:
Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate()
Message ID:
ylr966lr0j.fsf@windlord.stanford.edu
Jonathan Scott Duff <duff@cbi.tamucc.edu> 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 (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About