develooper Front page | perl.datetime | Postings from January 2003

Changing time zones?

Thread Next
Dave Rolsky
January 30, 2003 17:19
Changing time zones?
Message ID:
What should happen when someone does this:

 my $dt = ...;

 $dt->set( time_zone => 'America/Denver' );

and the new time zone is different from the old?

There's two ways to do this.  One is to keep the UTC time the same, which
ends up shifting the effective local time.

The other would be to change the local time (in effect shifting the UTC


House Absolute Consulting

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About