[Python-Dev] Issue 2736: datetimes and Unix timestamps (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Jun 5 20:21:45 CEST 2012
- Previous message: [Python-Dev] Issue 2736: datetimes and Unix timestamps
- Next message: [Python-Dev] Issue 2736: datetimes and Unix timestamps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jun 5, 2012 at 1:41 PM, Guido van Rossum <guido at python.org> wrote:
Maybe you need to get out more. :-) This is how datetime is represented in App Engine's datastore: https://developers.google.com/appengine/docs/python/datastore/typesandpropertyclasses#DateTimeProperty (Note: These docs are unclear about whether a tzinfo attribute is present. The code is clear that it isn't.)
From the docs: "Some libraries use the TZ environment variable to control the time zone applied to date-time values. App Engine sets this environment variable to 'UTC'." This means that App Engine's local timezone is UTC and strictly speaking this is not a counter example to what I said. Proposed mktime() based code will still work in this case.
- Previous message: [Python-Dev] Issue 2736: datetimes and Unix timestamps
- Next message: [Python-Dev] Issue 2736: datetimes and Unix timestamps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]