diff options
author | Georg Brandl <georg@python.org> | 2008-03-22 22:04:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-22 22:04:10 (GMT) |
commit | e8f1b00372891ddf6e42886bff397c43dad7a4eb (patch) | |
tree | ed62d4d8c7055404bbfbd1382afadd443cce6944 /Doc/library/time.rst | |
parent | 7a45ab826e9b2ecaee49cc8fd206631395a48927 (diff) | |
download | cpython-e8f1b00372891ddf6e42886bff397c43dad7a4eb.zip cpython-e8f1b00372891ddf6e42886bff397c43dad7a4eb.tar.gz cpython-e8f1b00372891ddf6e42886bff397c43dad7a4eb.tar.bz2 |
Enable doctest running for several other documents.
We have now over 640 doctests that are run with "make doctest".
Diffstat (limited to 'Doc/library/time.rst')
-rw-r--r-- | Doc/library/time.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 41db8a4..4d9d483 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -382,11 +382,12 @@ The module defines the following functions and data items: The default values used to fill in any missing data when more accurate values cannot be inferred are ``(1900, 1, 1, 0, 0, 0, 0, 1, -1)``. - For example:: + For example: >>> import time - >>> time.strptime("30 Nov 00", "%d %b %y") - (2000, 11, 30, 0, 0, 0, 3, 335, -1) + >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE + time.struct_time(tm_year=2000, tm_mon=11, tm_mday=30, tm_hour=0, tm_min=0, + tm_sec=0, tm_wday=3, tm_yday=335, tm_isdst=-1) Support for the ``%Z`` directive is based on the values contained in ``tzname`` and whether ``daylight`` is true. Because of this, it is platform-specific |