Re: Re: [rfc] HiRes

2003-08-10 Thread Rick Measham
At 4:46 PM -1000 10/8/03, Joshua Hoblitt wrote: What about using 'require Time::HiRes' inside the hires constructor? My thinking is since we already have hires_epoch() in the DT namespace we might as well have hires_now() there too. Not to mention hires_local_now and hires_local_today :P --

ANNOUNCE: Params::Validate 0.65

2003-08-10 Thread Dave Rolsky
0.65 Aug 07, 2003 - It is now possible to turn validation on and off at runtime. To make this easier, it can be set via the PERL_NO_VALIDATION environment variable, or the $Params::Validate::NO_VALIDATION global variable. Go ahead, shoot yourself in the foot with it! Per recent discussions of

DateTime->localtime() (was Re: DT::TZ test failure)

2003-08-10 Thread John Siracusa
On Sunday, August 10, 2003, at 08:08 PM, Dave Rolsky wrote: On Sun, 10 Aug 2003, John Siracusa wrote: We have enough constructors as it is. Well that's not my fault :) If, for whatever reason, you're going to limit DateTime to N constructors, they should be the N most likely to be used. Do you re

Re: DateTime->localtime() (was Re: DT::TZ test failure)

2003-08-10 Thread John Siracusa
On Sunday, August 10, 2003, at 09:58 PM, David Wheeler wrote: On Sunday, August 10, 2003, at 06:07 PM, John Siracusa wrote: ...unless that's the only way you will *ever* call now()! :) Obviously, you need currying. See Perl 6. Or create your own subclass with its own now() method that passes the

Re: DateTime->localtime() (was Re: DT::TZ test failure)

2003-08-10 Thread David Wheeler
On Sunday, August 10, 2003, at 06:07 PM, John Siracusa wrote: ...unless that's the only way you will *ever* call now()! :) Obviously, you need currying. See Perl 6. Or create your own subclass with its own now() method that passes the argument for you. Or create a function that calls it for yo

Re: DT::Wrapper API/semantics

2003-08-10 Thread Rick Measham
On Sat, 2003-08-09 at 06:55, Dave Rolsky wrote: > So what I think we really want is this: > > my $Wrapper = DT::Wrapper->wrapper( [$class1, $class2, $class3] ); > On Fri, 9 Aug 2003, Rick Measham wrote: > > Maybe my approach has some holes, but have a look at the attached and > > see what you t

Re: DT::TZ test failure

2003-08-10 Thread Dave Rolsky
On Sun, 10 Aug 2003, John Siracusa wrote: > On 8/10/03 9:39 AM, Dave Rolsky wrote: > > DateTime.pm now sets the time zone to floating when it creates an object > > in the from_object() method. I think it used to be UTC. I'll release a > > new DT::TZ to handle this. > > ...speaking of which, is t