Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96589 > unrolled thread
| Started by | Random832 <random832@fastmail.com> |
|---|---|
| First post | 2015-09-14 15:13 -0400 |
| Last post | 2015-09-14 15:13 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo? Random832 <random832@fastmail.com> - 2015-09-14 15:13 -0400
| From | Random832 <random832@fastmail.com> |
|---|---|
| Date | 2015-09-14 15:13 -0400 |
| Subject | Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo? |
| Message-ID | <mailman.551.1442257999.8327.python-list@python.org> |
On Mon, Sep 14, 2015, at 14:53, Tim Peters wrote: > So, on your own machine, whenever daylight time starts or ends, you > manually change your TZ environment variable to specify the newly > appropriate eternally-fixed-offset zone? Of course not. No, but the hybrid zone isn't what gets attached to the individual struct tm value when you convert a time from utc (or from a POSIX timestamp) to a timezone local value. A single fixed utc offset is (along with the name and, yes, isdst flag). And pytz doesn't involve manually changing anything, it involves (as best it can) automatically applying the value to attach to each individual datetime value. > A datetime object is the Python spelling of a C struct tm, but never > included the tm_isdst flag. And no-one behind this proposal seems to be contemplating adding an equivalent to tm_gmtoff, despite that it would serve the same disambiguation purpose and make it much cheaper to maintain global invariants like a sort order according to the UTC value (No, I don't *care* how that's not how it's defined, it is *in fact* true for the UTC value that you will ever actually get from converting the values to UTC *today*, and it's the only total ordering that actually makes any sense)
Back to top | Article view | comp.lang.python
csiph-web