Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57379
| References | <CANc-5Uy2yURBqadE0Bd6uJMUaTKvrBfRSQhb-mpSo3e7+Sy1=A@mail.gmail.com> |
|---|---|
| Date | 2013-10-23 14:00 -0500 |
| Subject | Re: Confused about timezones |
| From | Skip Montanaro <skip@pobox.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1421.1382554853.18130.python-list@python.org> (permalink) |
>>>> 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. Skip
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Confused about timezones Skip Montanaro <skip@pobox.com> - 2013-10-23 14:00 -0500
csiph-web