Chaim Frenkel wrote: > > Strange thought just crossed my mind. > > Would having a time object that is understood by perl be sufficient? > It would smell and taste like an integer but would otherwise be > magical. This is something that should be easily doable if RFC 73, "All Perl core functions should return objects", gets adopted. Then we could easily have time() return an object which, when in a numeric or string context, evaluates to the UNIX epoch seconds. But it could easily have object methods like: $t = time; # Generate time object print $t; # UNIX epoch $t++; # UNIX epoch + 1 $t->mjdate; # Modified Julian Date $t->systime; # System time $t->unix; # UNIX epoch, same as NUMBER and STRING $t->judaic; # You get the idea... :-) Embedded objects are looking better all the time... -Nate
- Re: RFC 99 (v2) Standardize ALL Perl pl... Chris Nandor
- Re: RFC 99 (v2) Standardize ALL Perl platfo... skud
- Re: RFC 99 (v2) Standardize ALL Perl platfo... Chaim Frenkel
- Re: RFC 99 (v2) Standardize ALL Perl pl... Buddha Buck
- Re: RFC 99 (v2) Standardize ALL Pe... Chaim Frenkel
- Re: RFC 99 (v2) Standardize AL... Nathan Wiger
- Re: RFC 99 (v2) Standardize ALL Perl pl... Philip Newton
- Re: RFC 99 (v2) Standardize ALL Perl platfo... Peter Scott
- Re: RFC 99 (v2) Standardize ALL Perl platfo... Chaim Frenkel
- Re: RFC 99 (v2) Standardize ALL Perl pl... Nathan Wiger
- Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX e... Stephen P. Potter
- Re: RFC 99 (v2) Standardize ALL Perl platforms on U... Jarkko Hietaniemi
- RE: RFC 99 (v2) Standardize ALL Perl platforms on UNIX e... Henrik Tougaard
- Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX e... Chris Nandor
- Re: RFC 99 (v2) Standardize ALL Perl platforms on U... Russ Allbery
- Re: RFC 99 (v2) Standardize ALL Perl platforms ... Alan Burlison
- Re: RFC 99 (v2) Standardize ALL Perl platfo... Chris Nandor
- Re: RFC 99 (v2) Standardize ALL Perl pl... Alan Burlison