Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57389
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ethan@stoneleaf.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.029 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'needless': 0.16; 'received:69.93': 0.16; 'utc': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'skip': 0.24; 'skip:l 30': 0.24; 'header:In- Reply-To:1': 0.27; "doesn't": 0.30; 'noticed': 0.34; 'skip:d 20': 0.34; 'anybody': 0.35; 'objects': 0.35; 'charset:us-ascii': 0.36; 'too': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'different': 0.65; 'brain': 0.68; 'glance': 0.84; 'same,': 0.91 |
| Date | Wed, 23 Oct 2013 13:56:50 -0700 |
| From | Ethan Furman <ethan@stoneleaf.us> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Confused about timezones |
| References | <CANc-5Uy2yURBqadE0Bd6uJMUaTKvrBfRSQhb-mpSo3e7+Sy1=A@mail.gmail.com> <CANc-5Uz0_em1yB_vE2mQ9Va8AgaNe2vc+mKTPBuSQhq7U9p2gQ@mail.gmail.com> |
| In-Reply-To | <CANc-5Uz0_em1yB_vE2mQ9Va8AgaNe2vc+mKTPBuSQhq7U9p2gQ@mail.gmail.com> |
| Content-Type | text/plain; charset=us-ascii; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - gator3304.hostgator.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - stoneleaf.us |
| X-BWhitelist | no |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Source-Sender | ([173.12.184.233]) [173.12.184.233]:38708 |
| X-Source-Auth | ethan+stoneleaf.us |
| X-Email-Count | 2 |
| X-Source-Cap | dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20= |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1430.1382565146.18130.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1382565146 news.xs4all.nl 15988 [2001:888:2000:d::a6]:46398 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:57389 |
Show key headers only | 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
Re: Confused about timezones Ethan Furman <ethan@stoneleaf.us> - 2013-10-23 13:56 -0700
csiph-web