A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/119959.html below:

[Python-Dev] TZ-aware local time

[Python-Dev] TZ-aware local time [Python-Dev] TZ-aware local timeGreg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 6 01:11:38 CEST 2012
Alexander Belopolsky wrote:
> The problem is again the DST ambiguity.  One day a year, datetime(y,
> m, d, 1, 30, tzinfo=Local) represents two different times and another
> day it represents no valid time.
> 
> The documentation example (fixed in issue 9063) addresses the
> ambiguity by defaulting to standard time, but it does this at a cost
> of having no way to spell "the other hour."

What would be so bad about giving datetime objects
a DST flag? Apps that don't care could ignore it and
get results no worse than the status quo.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4