ANNOUNCE: DateTime.pm 0.31

2006-05-21 Thread Dave Rolsky
Nothing too big here, but I had some useful changes sitting in SVN I thought I might as well release. 0.312006-05-21 [ ENHANCEMENTS ] - Switched some uses of die() to Carp::croak(), where appropriate. This should make error messages more useful in many cases. Based on a suggestion by Max

Re: ANNOUNCE: DateTime.pm 0.31

2006-05-21 Thread Jerrad Pierce
- Switched some uses of die() to Carp::croak(), where Excellent, I've had to add in handlers for $SIG{__DIE__} locally. Given all its other dependencies, I'd wondered why DT shyed away from this most useful one ;-) - Removed all uses of UNIVERSAL::isa and UNIVERSAL::can. Is there a ticket number

Re: ANNOUNCE: DateTime.pm 0.31

2006-05-21 Thread Dave Rolsky
On Sun, 21 May 2006, Jerrad Pierce wrote: - Switched some uses of die() to Carp::croak(), where Excellent, I've had to add in handlers for $SIG{__DIE__} locally. Given all its other dependencies, I'd wondered why DT shyed away from this most useful one ;-) There's no particular reason,

JD problem

2006-05-21 Thread Jason Thaxter
I have a bug using DateTime::Format::Epoch::JD: The 'hour' parameter (24) to DateTime::new did not pass the 'is between 0 and 23' callback at /usr/local/lib/perl5/site_perl/5.8.8/DateTime/Format/Epoch.pm line 179 I'm pretty sure the problem actually occurs on a time where UTC is midnight.

Re: JD problem

2006-05-21 Thread Jason Thaxter
Curiosity got the better of me. The fix works and is demonstrated below. Now it really *is* past my bedtime or I'd write a test... ;-) On Monday 22 May 2006 01:06, Jason Thaxter wrote: 167c167 if ($rd_secs = 86400) { --- if ($rd_secs 86400) { Seems obvious enough. But