Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Bart Lateur- September 30, 2000 On Tue, 26 Sep 2000 08:10:39 -0700, Nathan Wiger wrote:>Well, you can easily do this already with>> $date = utcdate (time + $offset);>>Or even:>> $date = utcdate (time + &getoffset(&39;USPacific&39;));Unfortunately, because Daylight Saving Time is largely equivalent toTime Zones, $offset depends on the time.-- Bart.http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg96.html Re: RFC 99 (v4) Standardize ALL Perl platforms on UNIX epoch by Russ Allbery- September 28, 2000 Curtis Jewell <csjc05mizzou.edu> writes:> Hmm... Isn&39;t TAI->UTC RELATIVELY easy, but has accuracy loss (I could> be misinformed...) I&39;d just do two things, therefore:TAI to UTC is easy and accurate if you have a current leap-seconds table.(In fact, in order to get TAI, you probably converted from UTC to TAI inthe first place, since most available clocks tick UTC.)The problem with doing anything about leap seconds other than completelyignoring them is that you have to know...http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg95.html Re: RFC 99 (v4) Standardize ALL Perl platforms on UNIX epoch by Curtis Jewell- September 28, 2000 ----- Original Message -----From: "Perl6 RFC Librarian" <perl6-rfcperl.org>To: <perl6-announce-rfcperl.org>Cc: <perl6-language-datetimeperl.org>Sent: Thursday, September 28, 2000 14:37Subject: RFC 99 (v4) Standardize ALL Perl platforms on UNIX epoch> The issue is still open as to whether or not time should be maintained> internally via TAI or UTC. Both have their pros and cons. TAI is more> accurate, but does not have any close correlation to many platforms..http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg94.html RFC 99 (v4) Standardize ALL Perl platforms on UNIX epoch by Perl6 RFC Librarian- September 28, 2000 This and other RFCs are available on the web at http:dev.perl.orgrfc=head1 TITLEStandardize ALL Perl platforms on UNIX epoch=head1 VERSION Maintainer: Nathan Wiger <natewiger.org> Date: 14 Aug 2000 Last Modified: 28 Sep 2000 Mailing List: perl6-language-datetimeperl.org Number: 99 Version: 4 Status: Frozen=head1 ABSTRACTCurrently, internal time in Perl is maintained via C<time>, which ishighly system-dependent. On some systems, this is relative to the UNIXepoch, while others.http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg93.html Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Russ Allbery- September 26, 2000 Jonathan Scott Duff <duffcbi.tamucc.edu> writes:> Do you mean local time now or local time for all time The former is> easy, the latter hard. Well, it&39;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 OSC> RTLetc.It should just punt. ...http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg92.html Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Nathan Wiger- September 26, 2000 Jonathan Scott Duff wrote:> > Or would C<date()> just use C<localtime()> and punt to the OSC RTLetc.Yes, I believe that would be the idea. Or something else exactly like it;-). Resolving localtime is not our concern; presenting it in ahuman-usable format is. And there&39;s no reason you couldn&39;t do this: use Date::Timezones qwsec_offset; $localtime = utcdate (time + sec_offset(&39;USPacific&39;));But this functionality wouldn&39;t have to be in core.-Natehttp://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg91.html Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Jonathan Scott Duff- September 26, 2000 On Tue, Sep 26, 2000 at 08:10:39AM -0700, Nathan Wiger wrote:> And having a date() that returns local time, which will be most-used,> is still a good thing, I think.Do you mean local time now or local time for all time The former iseasy, the latter hard. Well, it&39;s not hard for those places where theoffset from UTC has remained (mostly) constant, but there are some placesthat have an offset from UTC that is a function of time more complexthan daylight savings.Or would C<date()>.http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg90.html Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Nathan Wiger- September 26, 2000 Jonathan Scott Duff wrote:> > I still think one of the options to the C<date()> routine could be the> offset from UTC or a code ref to a subroutine that can determine the> offset given the current UTC. That way the user could specify what> localtime means (even if it doesn&39;t really mean local time ;-).Well, you can easily do this already with $date = utcdate (time + $offset);Or even: $date = utcdate (time + &getoffset(&39;USPacific&39;));Or even: $date = date...http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg89.html Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Jonathan Scott Duff- September 26, 2000 On Tue, Sep 26, 2000 at 05:49:38AM -0000, Nathan Wiger wrote:> =head1 NOTES ON FREEZE> > Everyone felt pretty good about this, I think. The only thing we&39;d all> probably like to see is one single C<date> function, but unfortunately> dealing with timezone specifications is an extraordinarily difficult> issue. I still think one of the options to the C<date()> routine could be theoffset from UTC or a code ref to a subroutine that can determine theoffset given the...http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg88.html RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate() by Perl6 RFC Librarian- September 25, 2000 This and other RFCs are available on the web at http:dev.perl.orgrfc=head1 TITLE Replace localtime() and gmtime() with date() and utcdate()=head1 VERSION Maintainer: Nathan Wiger <natewiger.org> Date: 5 Aug 2000 Last Modified: 25 Sep 2000 Mailing List: perl6-language-datetimeperl.org Number: 48 Version: 4 Status: Frozen Requires: RFC 21, RFC 159=head1 ABSTRACTCurrently, Perl uses the C library C<localtime()> and C<gmtime()>functions for date access. However, because...http://www.nntp.perl.org/group/perl.perl6.language.datetime/2000/09/msg87.html |