new fan has questions/comments/suggestions

2004-08-05 Thread Ofer Nave
Hello! I just recently found the DateTime project after spending a good week studying international standards, chapters in various perl books, and the various existing modules in CPAN. I was disastisfied with all existing solutions, and was just about to start coding my own date object when I

Leap seconds / time zone bug in DateTime.pm

2004-08-05 Thread Eugene van der Pijll
There's a bug somewhere in the interaction between leap seconds and time zones. In timezones with a positive offset, datetimes after local midnight but before UTC midnight already are affected by the leap second: $dt = DateTime-new( year = 1997, month = 7, day = 1,

Re: new fan has questions/comments/suggestions

2004-08-05 Thread Dave Rolsky
On Thu, 5 Aug 2004, Ofer Nave wrote: 1) Why have different 'new' and 'from_epoch' constructors? Couldn't one always use 'new' and have the module figure out what information to initiatlize itself with by seeing if either the 'year' or 'epoch' name parameter was passed? I think it would

Re: new fan has questions/comments/suggestions

2004-08-05 Thread Dave Rolsky
On Fri, 6 Aug 2004, Rick Measham wrote: All parameters are named in DateTime. It's a convention we use and s/All/Almost all/ There are some that take positional params. Those are usually cases where I expect it to never need more than one parameter, _or_ where it takes a list of similar

RE: new fan has questions/comments/suggestions

2004-08-05 Thread Dave Rolsky
On Thu, 5 Aug 2004, Ofer Nave wrote: run in epoch mode, and not even pay attention to hour. Just like it wouldn't pay attention to billybob if I passed it ( epoch = time(), billbob = 'thornton' ). Uh, have you tried that? It'll throw an exception. I'm a big believer in dying on bad input,