> Standardize ALL Perl platforms on UNIX epoch
I've seen lots of discussion on this, and there have been 2 previous
versions worth of discussion as well. The first version of this was
actually entitled:
"Maintain internal time in Modified Julian (not epoch)"
but that got shot down so fast it wasn't even funny.
I think Chuck hit the nail on the head with this:
I've been in the Epoch !=0 mode and it sucked. I vote for
Epoch=0 as the default.
The overwhelming consensus in the previous discussions was:
1. There are problems with every epoch. *EVERY* epoch.
2. Optimize for Perl.
Now, one thing that should probably be explored is creating a time
object, similar to the date object specified in RFC 48. In fact, I'd
just assume "All Perl core functions should return objects", and hence
the reason I wrote RFC 73. ;-)
Seems to me something like this:
$t = time; # time object
$t++; # ->NUMBER, same as ->unix
print "$t"; # ->STRING, same as ->iso
$t->unix # UNIX epoch seconds
$t->iso # ISO format
$t->native # native epoch, whatever that may be
Kicks ass. 64 bits should be used wherever possible. The time object can
be passed anywhere and everywhere, and builtin functions know which
member methods to call to get what they want.
This is the type of power I'd like in Perl 6. Just looking at it make me
giddy. Thoughts?
-Nate
- Re: RFC 99 (v3) Standardize ALL P... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL P... Bart Lateur
- Re: RFC 99 (v3) Standardize ALL P... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL P... Chaim Frenkel
- Re: RFC 99 (v3) Standardize ALL P... Russ Allbery
- Re: RFC 99 (v3) Standardize ALL P... Bart Lateur
- Re: RFC 99 (v3) Standardize ALL P... Bart Lateur
- Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX... Russ Allbery
- Re: RFC 99 (v3) Standardize ALL Perl platforms on ... Bart Lateur
- Re: RFC 99 (v3) Standardize ALL Perl platforms... Russ Allbery
- Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX epoc... Nathan Wiger
- Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL Perl platforms on ... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL Perl platforms on ... Nathan Wiger
- Re: RFC 99 (v3) Standardize ALL Perl platforms... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX epoc... Charles Lane
- Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX... Andy Dougherty
- Re: RFC 99 (v3) Standardize ALL Perl platforms on ... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL Perl platforms... Andy Dougherty
- Re: RFC 99 (v3) Standardize ALL Perl platf... Chris Nandor
- Re: RFC 99 (v3) Standardize ALL Perl platforms on ... Philip Newton
