diff options
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r-- | Doc/library/datetime.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index e4aac1a..9401b38 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -532,7 +532,7 @@ Example of working with :class:`date`: datetime.date(2002, 3, 11) >>> t = d.timetuple() >>> for i in t: # doctest: +SKIP - ... print i + ... print(i) 2002 # year 3 # month 11 # day @@ -544,7 +544,7 @@ Example of working with :class:`date`: -1 >>> ic = d.isocalendar() >>> for i in ic: # doctest: +SKIP - ... print i + ... print(i) 2002 # ISO year 11 # ISO week number 1 # ISO day number ( 1 = Monday ) @@ -1011,7 +1011,7 @@ Examples of working with datetime objects: >>> # Using datetime.timetuple() to get tuple of all attributes >>> tt = dt.timetuple() >>> for it in tt: # doctest: +SKIP - ... print it + ... print(it) ... 2006 # year 11 # month @@ -1025,7 +1025,7 @@ Examples of working with datetime objects: >>> # Date in ISO format >>> ic = dt.isocalendar() >>> for it in ic: # doctest: +SKIP - ... print it + ... print(it) ... 2006 # ISO year 47 # ISO week |