Daylight savings time question
random832 at fastmail.us
random832 at fastmail.us
Wed Mar 25 11:10:04 EDT 2015
On Tue, Mar 24, 2015, at 18:24, Dan Stromberg wrote:
> Is there a way of "adding" 4 hours and getting a jump of 5 hours on
> March 8th, 2015 (due to Daylight Savings Time), without hardcoding
> when to spring forward and when to fall back? I'd love it if there's
> some library that'll do this for me.
If you're adding an extra four hours to your "local" time, then your new
offset is going to be -3 hours instead of -7: to do this "properly" you
would have to define a new timezone.
More information about the Python-list
mailing list