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

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 pseu

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 a

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 O

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 i

Re: missing something..part 2

2007-01-25 Thread Zefram
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 pseudo-zones. >Are the Etc/GMT+X the prope

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 pr