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
"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
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