Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20192
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news-peer.in.tum.de!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed1.dallas1.level3.net!newsfeed2.dallas1.level3.net!news.level3.com!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: datetime module and timezone |
| Date | Fri, 10 Feb 2012 21:30:07 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 20 |
| Message-ID | <jh428v$2dg$1@reader1.panix.com> (permalink) |
| References | <20120210222545.4cbe6924@bigfoot.com> |
| NNTP-Posting-Host | panix2.panix.com |
| X-Trace | reader1.panix.com 1328909407 2480 166.84.1.2 (10 Feb 2012 21:30:07 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Fri, 10 Feb 2012 21:30:07 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20192 |
Show key headers only | View raw
In <20120210222545.4cbe6924@bigfoot.com> Olive <diolu@bigfoot.com> writes:
> In the datetime module, it has support for a notion of timezone but is
> it possible to use one of the available timezone (I am on Linux). Linux
> has a notion of timezone (in my distribution, they are stored
> in /usr/share/zoneinfo). I would like to be able 1) to know the current
> timezone and 2) to be able to use the timezone available on the system.
> How can I do that?
I believe the current user's timezone is stored in the TZ environment
variable.
I don't understand your second question. Are you asking for a list of
of all the possible timezone choices?
--
John Gordon A is for Amy, who fell down the stairs
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
datetime module and timezone Olive <diolu@bigfoot.com> - 2012-02-10 22:25 +0100
Re: datetime module and timezone John Gordon <gordon@panix.com> - 2012-02-10 21:30 +0000
Re: datetime module and timezone Chris Rebert <clp2@rebertia.com> - 2012-02-10 14:00 -0800
Re: datetime module and timezone Bob Martin <bob.martin@excite.com> - 2012-02-11 07:05 +0000
Re: datetime module and timezone all mail refused <elvis-85496@notatla.org.uk> - 2012-02-11 08:51 +0000
csiph-web