-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 30 Jan 2003, Dave Rolsky wrote:
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
On Fri, 31 Jan 2003, John Peacock wrote:
Let me think out loud now. If we are always storing time _and_ TZ, then it
certainly make more sense to me to use UTC to store the time. How's this for a
good example (pseudo-code):
my $t1 = new DateTime::Simple (2002-12-30T08:00:00, TZ =
Dave Rolsky wrote:
The other would be to change the local time (in effect shifting the UTC
time).
Store in UTC (always). If they shift the rug underneath the object, apply the
net offset to the UTC time and store the new TZ.
Think of it this way:
my $buffy = new ...; # Washington, DC @
On Thursday, January 30, 2003, at 05:19 PM, Dave Rolsky wrote:
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