Re: DST and datetime

2010-01-03 Thread Lawrence D'Oliveiro
In message <874on82oan@benfinney.id.au>, Ben Finney wrote: > Or you could use the ready-made wheel maintained by others: > > tzinfo Objects > http://docs.python.org/library/datetime.html#tzinfo-objects> But that’s only an abstract base class, which means it doesn’t actually implemen

Re: DST and datetime

2009-12-30 Thread Ben Finney
"W. eWatson" writes: > =Program > from datetime import datetime, timedelta > import time > > DST_dict = { # West coast, 8 hours from Greenwich for PST > 2007:("2007/03/11 02:00:00", "2007/11/04 02:00:00"), > 2008:("2008/03/09 02:00:00", "2008/11/02 02

DST and datetime

2009-12-30 Thread W. eWatson
Try this. It works for me and my application. =Program from datetime import datetime, timedelta import time DST_dict = { # West coast, 8 hours from Greenwich for PST 2007:("2007/03/11 02:00:00", "2007/11/04 02:00:00"), 2008:("2008/03/09 02:00:00", "2