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


Groups > comp.lang.python > #57379 > unrolled thread

Re: Confused about timezones

Started bySkip Montanaro <skip@pobox.com>
First post2013-10-23 14:00 -0500
Last post2013-10-23 14:00 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Confused about timezones Skip Montanaro <skip@pobox.com> - 2013-10-23 14:00 -0500

#57379 — Re: Confused about timezones

FromSkip Montanaro <skip@pobox.com>
Date2013-10-23 14:00 -0500
SubjectRe: Confused about timezones
Message-ID<mailman.1421.1382554853.18130.python-list@python.org>
>>>> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web