Floating time zone = non-floating

2003-02-02 Thread Dave Rolsky
If I have a datetime object with a floating time zone and then I set the
time zone to some non-floating zone, I shouldn't change the local time,
right?


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/



Re: Floating time zone = non-floating

2003-02-02 Thread Dave Rolsky
On Sun, 2 Feb 2003, Dave Rolsky wrote:

 If I have a datetime object with a floating time zone and then I set the
 time zone to some non-floating zone, I shouldn't change the local time,
 right?

And how about non-floating = floating?  Same thing, no adjustment, right?


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/



Re: Floating time zone = non-floating

2003-02-02 Thread Bruce Van Allen

On Sunday, February 2, 2003, at 02:42  PM, Dave Rolsky wrote:


On Sun, 2 Feb 2003, Dave Rolsky wrote:


If I have a datetime object with a floating time zone and then I set 
the
time zone to some non-floating zone, I shouldn't change the local 
time,
right?

And how about non-floating = floating?  Same thing, no adjustment, 
right?


Yes and yes. And if someone wanted different, it would be easy to have 
methods like:

  $dt-unfloat_from_UTC( time_zone = 'America/Chicago' );

which takes the floating time as UTC and offsets to local time for the 
object's now-anchored time.

  - Bruce

__bruce__van_allen__santa_cruz__ca__