Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57389

Re: Confused about timezones

Date 2013-10-23 13:56 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: Confused about timezones
References <CANc-5Uy2yURBqadE0Bd6uJMUaTKvrBfRSQhb-mpSo3e7+Sy1=A@mail.gmail.com> <CANc-5Uz0_em1yB_vE2mQ9Va8AgaNe2vc+mKTPBuSQhq7U9p2gQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1430.1382565146.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 10/23/2013 12:00 PM, Skip Montanaro wrote:
> >
>> --> LOCAL_TZ.localize(dt1).utcoffset()
>> datetime.timedelta(-1, 68400)
>> --> LOCAL_TZ.localize(dt2).utcoffset()
>> datetime.timedelta(-1, 64800)
>>
>> Why is the UTC offset the same for both datetime objects despite the
>> presence/absence of Daylight Savings?
>
> Brain freeze! A quick glance told me they were the same, when they
> actually are different (68400, 64800). Sorry for the needless noise.

Don't feel too bad, doesn't look like anybody else noticed either!  ;)

--
~Ethan~

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Confused about timezones Ethan Furman <ethan@stoneleaf.us> - 2013-10-23 13:56 -0700

csiph-web