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
On Wed, Mar 25, 2015 at 10:18 AM, Carl Meyer wrote:
> US/Pacific is an alias for America/Los_Angeles, and is also part of the
> Olson database (though I guess it's considered an "old" name for the
> timezone): https://github.com/eggert/tz/blob/master/backward
Ah, okay. No problem then. If it work
Hi Dan,
On 03/24/2015 04:24 PM, 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
On 03/24/2015 04:56 PM, Chris Angelico wrote:
> On Wed, Mar 25, 2015 at 9:24 AM, 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 l
This appears to do what I wanted:
#!/usr/bin/python
from __future__ import print_function
import pytz
import datetime
# Is there a good way of jumping ahead 5 hours instead of 4 on 2015-03-08?
def main():
# On 2015-03-08, 2:00 AM to 2:59AM Pacific time does not exist -
the clock jumps forw
On Wed, Mar 25, 2015 at 9:24 AM, 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 fo
On 03/24/2015 03:24 PM, 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.
#!/usr/bi
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.
#!/usr/bin/python
import pytz
import datetime
def main