[issue21221] Minor struct_time documentation bug

Andrew Scheller report at bugs.python.org
Mon Apr 14 20:29:20 CEST 2014


New submission from Andrew Scheller:

The documentation for time.struct_time (in Doc/library/time.rst) explains tm_isdst as "0, 1 or -1; see below" but then doesn't really go into further detail below, other than to say "A -1 argument as the daylight savings flag, passed to mktime() will usually result in the correct daylight savings state to be filled in.".

In Modules/timemodule.c there's a section which says:
{"tm_isdst", "1 if summer time is in effect, 0 if not, and -1 if unknown"},

IMHO it would be nice if this more accurate info was also present in the HTML documentation.

----------
assignee: docs at python
components: Documentation
messages: 216158
nosy: docs at python, lurchman
priority: normal
severity: normal
status: open
title: Minor struct_time documentation bug
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21221>
_______________________________________


More information about the Python-bugs-list mailing list