missing something..

2007-01-25 Thread Matthew
am I missing something?

missing something..part 2

2007-01-25 Thread Matthew
yea..missing the body..sheesh my $dt = DateTime-new( year = 2007, hour = 9, time_zone = Etc/GMT+5 ); The timezone 'Etc/GMT+5' in an invalid name. ?? I see all the Etc/GMT+X inside my /usr/share/zoneinfo/Etc/ so what's up? Are the Etc/GMT+X the proper

Re: missing something..part 2

2007-01-25 Thread Matthew
Thanks Zefram, Note the change of sign: for historical reasons the signs in the Etc/GMT+X names are the opposite of the actual offset. Wow. Yea, that caused me quite a headache. I didn't realize that. Spent forever trying to figure out why GMT+5 kept subtracting hours. but it doesn't

Re: missing something..part 2

2007-01-25 Thread Zefram
Matthew wrote: Hehe. I'm the DBA. And I've updated everything to most recent stuff, but the boss man wants generic time zones in our list just in case a customer can't find his or doesn't realize his city is listed differently. Unlikely to ever occur. As far as anyone knows, the Olson

Re: missing something..part 2

2007-01-25 Thread Ben Bennett
Or use DateTime::TimeZone::Alias [1] (untested code follows) use DateTime::TimeZone::Alias for my $hr in (0 .. 12) { DateTime::TimeZone::Alias-set(Etc/GMT+$hr, -${hr}:00); DateTime::TimeZone::Alias-set(Etc/GMT-$hr, +${hr}:00); } # And don't forget the 15 minute offsets and the 30

Re: missing something..part 2

2007-01-25 Thread Dave Rolsky
On Thu, 25 Jan 2007, Zefram wrote: Matthew wrote: I see all the Etc/GMT+X inside my /usr/share/zoneinfo/Etc/ so what's up? DateTime::TimeZone doesn't look in /usr/share/zoneinfo. It has its own version of the zoneinfo database, in the form of Perl modules, but it doesn't include the Etc

Re: missing something..part 2

2007-01-25 Thread Yitzchak Scott-Thoennes
Zefram wrote: Matthew wrote: Hehe. I'm the DBA. And I've updated everything to most recent stuff, but the boss man wants generic time zones in our list just in case a customer can't find his or doesn't realize his city is listed differently. Unlikely to ever occur. As far as anyone

ANNOUNCE: Time::Local 1.17

2007-01-25 Thread Dave Rolsky
1.172007-01-25 - I made the same test count mistake as was in 1.14 again. This release fixes the test count (again) when running on a system that doesn't support negative epochs (like Win32). Patched by Kenichi Ishigaki (again). Sigh. -dave

SysV timezones in DT::TZ

2007-01-25 Thread Zefram
I've knocked together an implementation of SysV/POSIX timezone specifications for DateTime. Code is at http://www.fysh.org/~zefram/tmp/SystemV.pm. This is my first go at implementing anything in the guts of DT, so experts here please check that I'm using the interfaces correctly. I don't quite