classification
Title: Manual entry for time.daylight can be misleading
Type: feature request Stage:
Components: Documentation Versions: Python 3.2, Python 3.1, Python 3.0, Python 2.7, Python 2.6, Python 2.5, Python 2.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, napik (2)
Priority: Keywords

Created on 2009-10-28 09:44 by napik, last changed 2009-10-28 09:44 by napik.

Messages (1)
msg94621 - (view) Author: Tomas Kubes (napik) Date: 2009-10-28 09:44
Hello,

it is not obvious that the time.daylight data item reports nonzero
values even when DST is currently not being used (ie. in winter) but the
active timezone has DST defined for some other parts of the year.

Current manual entry can be misleadingly interpreted that time.daylight
acts as a current DST idicator (which it does not).

Suggested FIX: Add a sentence:
This value does not idicate that DST is currently active, but rather
describes that current timezone can have DST. Use localtime() dst flag
to determine if DST applies to the given time.


Tomas
History
Date User Action Args
2009-10-28 09:44:10napikcreate