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

[email protected] (Nathan Wiger) Tue, 26 Sep 2000 08:44:39 -0700
Newsgroups perl.perl6.language.datetime
Message-ID <[email protected]>
Jonathan Scott Duff wrote:
> 
> Or would C<date()> just use C<localtime()> and punt to the OS/C RTL/etc.?

Yes, I believe that would be the idea. Or something else exactly like it
;-). Resolving localtime is not our concern; presenting it in a
human-usable format is. And there's no reason you couldn't do this:

   use Date::Timezones qw/sec_offset/;
   $localtime = utcdate (time + sec_offset('US/Pacific'));

But this functionality wouldn't have to be in core.

-Nate