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


Groups > comp.lang.python > #76648

Re: How can I get the timezone time of a location?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.060
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:How': 0.10; 'wrote': 0.14; 'windows': 0.15; '(just': 0.16; 'advice:': 0.16; 'entirely.': 0.16; 'finney': 0.16; 'gandhi': 0.16; 'non-native': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'type)': 0.16; 'utc': 0.16; 'weblog': 0.16; 'worse.': 0.16; 'pace': 0.19; 'header:User-Agent:1': 0.23; 'speakers.': 0.24; 'unicode': 0.24; 'push': 0.26; 'header:X-Complaints-To:1': 0.27; 'page.': 0.31; 'url:05': 0.31; 'url:2008': 0.31; 'writes:': 0.31; 'quite': 0.32; 'text': 0.33; 'open': 0.33; 'subject:time': 0.33; 'subject:the': 0.34; 'possible.': 0.35; 'but': 0.35; 'there': 0.35; 'edge': 0.36; 'subject:?': 0.36; 'should': 0.36; 'application': 0.37; 'two': 0.37; 'problems': 0.38; 'ben': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'hosted': 0.39; 'subject:can': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'information,': 0.61; 'address': 0.63; 'field': 0.63; 'more': 0.64; 'articles': 0.65; 'life': 0.66; 'here': 0.66; 'side': 0.67; 'real-world': 0.68; 'url:18': 0.68; 'video,': 0.68; 'increasing': 0.74; 'url:wordpress': 0.78; 'subject:get': 0.81; 'received:125': 0.84; 'speech': 0.84; 'subject:location': 0.84; 'url:2007': 0.84; 'canonical': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: How can I get the timezone time of a location?
Date Wed, 20 Aug 2014 19:24:25 +1000
References <CAMw+j7+c2zP+_mJ1yt_e7DqtUuP0CP0nD3Mu13FwDaFTi=mODQ@mail.gmail.com> <20140819230834.GA41818@cskk.homeip.net> <CAPTjJmpAdOHX0isKhTitqLBFjkgCiDhn9Z_EBZoxWH9N3CJf0A@mail.gmail.com> <53F3FF0F.2030204@gmail.com> <85a96z3blf.fsf@benfinney.id.au>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:bfSj/0raEoINGA7KTTBclk+Z4v8=
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.13195.1408526682.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408526682 news.xs4all.nl 2861 [2001:888:2000:d::a6]:35895
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76648

Show key headers only | View raw


Ben Finney <ben+python@benfinney.id.au> writes:

> luofeiyu <elearn2014@gmail.com> writes:
>
> > There is no video in the web when i open it in my firefox.
> The page describing the video also has a link to the hosted site of
> the video, see the “Video origin” field to the right side of that
> page.

The cited video contains good information, but the pace is quite fast
and Lennart's speech might be a little difficult to follow for
non-native speakers.

Here are two weblog articles he wrote on time zones and their problems
<URL:http://regebro.wordpress.com/2007/12/18/python-and-time-zones-fighting-the-beast/>
<URL:http://regebro.wordpress.com/2008/05/10/python-and-time-zones-part-2-the-beast-returns/>.

In brief: Time zones are a still-evolving system to address a thorny
real-world sociopolitical problem; and using Microsoft Windows makes it
significantly worse.

Advice: Use UTC as the canonical timezone (just as you should use
Unicode as the canonical text type) inside your application, and push
other time zones as far to the edge of your application as possible.
Avoid MS Windows entirely.

-- 
 \     “There is more to life than increasing its speed.” —Mohandas K. |
  `\                                                            Gandhi |
_o__)                                                                  |
Ben Finney

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


Thread

Re: How can I get the timezone time of a location? Ben Finney <ben+python@benfinney.id.au> - 2014-08-20 19:24 +1000

csiph-web