Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6062
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dan.kluev@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'python': 0.08; 'url:pypi': 0.08; 'offsets': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'object?': 0.16; 'offset,': 0.16; 'timezones': 0.16; 'zones': 0.16; 'mon,': 0.17; 'convert': 0.19; 'header:In- Reply-To:1': 0.21; 'java': 0.21; 'module,': 0.23; 'objects,': 0.23; 'received:209.85.210.174': 0.23; 'received:mail- iy0-f174.google.com': 0.23; 'message-id:@mail.gmail.com': 0.28; 'depends': 0.29; 'class': 0.29; 'url:9': 0.30; 'equivalent': 0.31; 'url:library': 0.31; 'does': 0.33; 'to:addr:python-list': 0.33; '[1]': 0.34; 'daniel': 0.34; 'there': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'url:docs': 0.37; 'url:python': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'current': 0.40; 'best': 0.60; 'url:4': 0.63; 'url:0': 0.69; 'datetime': 0.84; 'moment)': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=gGboikqB84SfB+b0jv2OB1ul8mGSdfsRPDvQZC423xk=; b=M43/CFnmZArAj4Kj2rueO4/xO7SkCiPNKGE4ZkH/zdlBOJiSzz0r015X1083l6+Cuf AO8OyQi9/LfeRadlLsp5+3rjBRqdm3DOleQoLqyVP3IFtA1E8/uVUV78mo/MS2IdItj8 OjAXBuF0Mr8vS5hyVCZglbYod7MfZPjPM9DxA= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ijLFDwi5kIFuBPfuuD97SosM0QPu6go7rJGh8OIS8RXLUS1vRSmHykOihnoEIe2EO4 nWmfNL9KENXfN0CFKMjRFBVYMLrIuv7g6A6z6zKmkKgIBsK6TryBqiphafm21cEgmZHX T759Wb5WG76O9uNHHkwdgMdUH29Ob2YuClhP8= |
| MIME-Version | 1.0 |
| In-Reply-To | <46c24750-ac9b-4d75-835c-5403ff2ea959@d28g2000yqf.googlegroups.com> |
| References | <46c24750-ac9b-4d75-835c-5403ff2ea959@d28g2000yqf.googlegroups.com> |
| Date | Mon, 23 May 2011 21:48:05 +1100 |
| Subject | Re: Python 2.6 and timezones |
| From | Daniel Kluev <dan.kluev@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1971.1306147689.9059.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1306147689 news.xs4all.nl 49177 [::ffff:82.94.164.166]:45857 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:6062 |
Show key headers only | View raw
On Mon, May 23, 2011 at 9:32 PM, loial <jldunn2000@gmail.com> wrote: > Does python have an equivalent of the java Timezone object? > > I need to be able to get offsets for timezones (only U.S. time zones > at the moment) Depends on what exactly do you want. If you need to convert timezone name into current offset, you should use [1] or [2]. If you just need to handle known offsets for datetime objects, there is tzinfo class in datetime module, [3]. [1] http://pypi.python.org/pypi/PosixTimeZone/0.9.4 [2] http://pypi.python.org/pypi/pytz/2011g [3] http://docs.python.org/library/datetime.html#tzinfo-objects -- With best regards, Daniel Kluev
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 2.6 and timezones loial <jldunn2000@gmail.com> - 2011-05-23 03:32 -0700
Re: Python 2.6 and timezones Daniel Kluev <dan.kluev@gmail.com> - 2011-05-23 21:48 +1100
Re: Python 2.6 and timezones loial <jldunn2000@gmail.com> - 2011-05-23 04:56 -0700
Re: Python 2.6 and timezones Daniel Kluev <dan.kluev@gmail.com> - 2011-05-23 23:33 +1100
csiph-web