Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'to:addr:pobox.com': 0.09; 'to:addr:skip': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'needless': 0.16; 'utc': 0.16; 'sender:addr:gmail.com': 0.17; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'skip:l 30': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'skip:d 20': 0.34; 'objects': 0.35; 'received:google.com': 0.35; 'different': 0.65; 'brain': 0.68; 'glance': 0.84; 'same,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=vLUukzZLKc5/itJD35rJi5ewBQ8exbBHIy7isOn5d9g=; b=WxfqJK42L9lAOj5KOPI8m+FwBMuByGREmEidDrd51kraSFBzIKCRb1qs0jn/PxHMog q1x65Z2M6kRWH7CDUhs5j/bb16NfSfwTKA+KYoAdFDSYtYhY9cANjJMYOrgWhL8DNMyn NTO0TjRFZyQHT6vZd5m39YsMv/yA6sxB+2jOXRxnf5Y+L8qRYaNVVNjY8mG34ZZcrue3 lvCOhu2LUMjgQkT30FQELsAv53/jSsCHaZK8kFbxQz+78R5IyKmXZ/+PGHcgdl7n0UAU ssmZWSW5utEOSBa2j7zykDbu2xyd4vC4akw/l7jVFZC39C0CvtmmJjmHPWCEPv/qRbaj 8psQ== MIME-Version: 1.0 X-Received: by 10.42.250.148 with SMTP id mo20mr1373857icb.34.1382554850878; Wed, 23 Oct 2013 12:00:50 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: References: Date: Wed, 23 Oct 2013 14:00:50 -0500 X-Google-Sender-Auth: CPAFFSJcBiJthUYDH-SDk6ObqF4 Subject: Re: Confused about timezones From: Skip Montanaro To: Skip Montanaro Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382554854 news.xs4all.nl 15929 [2001:888:2000:d::a6]:33318 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57379 >>>> 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