Re: make epoch() timezone aware, patch

2003-02-13 Thread Dave Rolsky
On Thu, 13 Feb 2003 [EMAIL PROTECTED] wrote: Btw, as should be obvious from the last couple of emails, I spent the evening plaing with DateTime, and I've very impressed. Thought I should mention that as I send in a slew of bug reports. Currently epoch() on DateTime.pm calculates the epoch

Re: make epoch() timezone aware, patch

2003-02-13 Thread kellan
On Thu, 13 Feb 2003, Dave Rolsky wrote: Actually, I think it's correct. The UNIX epoch is seconds since January 1, 1970 00:00:00 GMT. So the GMT assumption is indeed correct. But you are using Time::Local::timegm() to do the conversion. timegm() is the inverse of gmtime() which returns the

make epoch() timezone aware, patch

2003-02-12 Thread kellan
Btw, as should be obvious from the last couple of emails, I spent the evening plaing with DateTime, and I've very impressed. Thought I should mention that as I send in a slew of bug reports. Currently epoch() on DateTime.pm calculates the epoch incorrectly, it assumes that all objects are stored