develooper Front page | perl.perl6.language | Postings from July 2005

Re: Time::Local

Thread Previous | Thread Next
From:
Gaal Yahas
Date:
July 5, 2005 10:28
Subject:
Re: Time::Local
Message ID:
20050705172344.GR10045@sike.forum2.org
On Tue, Jul 05, 2005 at 11:41:23AM -0500, Dave Rolsky wrote:
> >Regarding Time::Local fields, it's an object now, so the order of things
> 
> Should that be Time::localtime?  In P5 there are Time::localtime & 
> Time::gmtime, which are thin OO facades over the language builtins.  Then 
> there's the module Time::Local, which is entirely different.
 
Hmm, I agree. I used Time::Local because that's what the draft Synopsis
put them in, but Time is a better fit.

> All of those provide useful functionality, and probably Time::Local should 
> be part of the language, _or_ localtime & gmtime should be in a library.

Not my call, but I think we can add timelocal and timegm soon. They're
mostly cleverly-caching facades to Time.new anyway, no? Drop by on #perl6
if you want to hack on the Prelude side of this.

-- 
Gaal Yahas <gaal@forum2.org>
http://gaal.livejournal.com/

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