Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79707ca commit 87e5d34Copy full SHA for 87e5d34
1 file changed
Doc/tutorial/stdlib.rst
@@ -181,15 +181,15 @@ focus of the implementation is on efficient member extraction for output
181
formatting and manipulation. The module also supports objects that are timezone
182
aware. ::
183
184
- # dates are easily constructed and formatted
+ >>> # dates are easily constructed and formatted
185
>>> from datetime import date
186
>>> now = date.today()
187
>>> now
188
datetime.date(2003, 12, 2)
189
>>> now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B.")
190
'12-02-03. 02 Dec 2003 is a Tuesday on the 02 day of December.'
191
192
- # dates support calendar arithmetic
+ >>> # dates support calendar arithmetic
193
>>> birthday = date(1964, 7, 31)
194
>>> age = now - birthday
195
>>> age.days
0 commit comments