Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60925
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <stuart@stuartbishop.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'append': 0.09; 'bishop': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'stuart': 0.16; 'subject: \n ': 0.16; 'timezones': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'module': 0.19; '(but': 0.19; 'cc:addr:python.org': 0.22; 'of.': 0.24; 'specify': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'database,': 0.30; 'dec': 0.30; 'est': 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'subject:time': 0.33; 'could': 0.34; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; "didn't": 0.36; 'possible': 0.36; 'should': 0.36; 'wrong': 0.37; 'list': 0.37; 'received:209': 0.37; 'represent': 0.38; 'solving': 0.38; 'pm,': 0.38; 'back': 0.62; 'map': 0.64; 'klein': 0.68; 'to:addr:contact': 0.91; '2013': 0.98 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EIS/saJfNPkSvqhKCr5iwoXVGGqKnaNxD1bzOYtVb8I=; b=VSl/AgLgLsnFW/72rzV+2e+uNsnKyQYqCHO3Aee9JsvocN5+s5cDqPpKjOoqUazbd8 jm8rBNiYmjsiElcsjY+ksDPdLi8x5WcYXA7EhKiRAup2mr65Yw/1c9MWFWArYUbIlMa/ KnB5VTgev/YrCIPgXWlNIWiAasQlAh1fEFIsV5oyVxa+GesDBAoNGl27C7UWwhs9+eR9 aD6ILBQoopABfTIFZUIW8myRyJzSwfS9MPoqkml1iQlvQFcgngTI0GG15Ej7KuPIdgg3 yLnh+y9dlq4iYdApt8YjVd/gJDt0MYfDhPcCV04qlLJt+ha/tFReGY0eGIeCxNsyuFNK WU3w== |
| X-Gm-Message-State | ALoCoQnxMfuoRTcRA2pSj/xQTJiq8G7imY6v6BqW4PbHCyFYuWpXErJ5BNhzveiqHZX0NKHNw6gL |
| MIME-Version | 1.0 |
| X-Received | by 10.153.7.106 with SMTP id db10mr39708076lad.9.1386065254140; Tue, 03 Dec 2013 02:07:34 -0800 (PST) |
| In-Reply-To | <l7ibsg$m9g$1@ger.gmane.org> |
| References | <l7ibsg$m9g$1@ger.gmane.org> |
| Date | Tue, 3 Dec 2013 17:07:34 +0700 |
| Subject | Re: I look for a list to convert time zone abbreviation to full time zone in python |
| From | Stuart Bishop <stuart@stuartbishop.net> |
| To | Stéphane Klein <contact@stephane-klein.info> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| 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.3505.1386065570.18130.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1386065570 news.xs4all.nl 15866 [2001:888:2000:d::a6]:41176 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:60925 |
Show key headers only | View raw
On Mon, Dec 2, 2013 at 11:18 PM, Stéphane Klein <contact@stephane-klein.info> wrote: > * are there the same list somewhere (I didn't found in pytz) ? Not that I know of. > * is it possible to append this list in pytz or in standard python date module ? It could go into pytz (but generated from the IANA database, not from the list you quote). Whether it should go into pytz is debatable. If you need to map an abbreviation back to a single timezone you are solving the wrong problem, because you can only map an abbreviation back to a list of possible timezones (And that list might change when the database is corrected). Also, to correctly represent this you need to specify the point in time. EST in 'Tue Dec 3 20:44:00 EST 2013' maps to about 3 timezones. EST in 'Tue Dec 3 20:44:00 EST 2011' maps to about 6. -- Stuart Bishop <stuart@stuartbishop.net> http://www.stuartbishop.net/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I look for a list to convert time zone abbreviation to full time zone in python Stuart Bishop <stuart@stuartbishop.net> - 2013-12-03 17:07 +0700
csiph-web