Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ffbcdf

Browse files
committed
merge from 3.4
Issue21221 - Explain the usage of tm_isdst attribute of mktime, with valid values and meaning. Patch contributed by Andrew Scheller.
2 parents 830207e + a880800 commit 6ffbcdf

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Doc/library/time.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,11 @@ The module defines the following functions and data items:
555555
+-------+-------------------+---------------------------------+
556556

557557
Note that unlike the C structure, the month value is a range of [1, 12], not
558-
[0, 11]. A ``-1`` argument as the daylight
559-
savings flag, passed to :func:`mktime` will usually result in the correct
560-
daylight savings state to be filled in.
558+
[0, 11].
559+
560+
In calls to :func:`mktime`, :attr:`tm_isdst` may be set to 1 when daylight
561+
savings time is in effect, and 0 when it is not. A value of -1 indicates that
562+
this is not known, and will usually result in the correct state being filled in.
561563

562564
When a tuple with an incorrect length is passed to a function expecting a
563565
:class:`struct_time`, or having elements of the wrong type, a

0 commit comments

Comments
 (0)