Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20192
| From | John Gordon <gordon@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: datetime module and timezone |
| Date | 2012-02-10 21:30 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <jh428v$2dg$1@reader1.panix.com> (permalink) |
| References | <20120210222545.4cbe6924@bigfoot.com> |
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