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

Skip to content

Commit cf2ec6d

Browse files
committed
fix highlight in the datetime example
1 parent b78ba6b commit cf2ec6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/stdlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ focus of the implementation is on efficient member extraction for output
181181
formatting and manipulation. The module also supports objects that are timezone
182182
aware. ::
183183

184-
# dates are easily constructed and formatted
184+
>>> # dates are easily constructed and formatted
185185
>>> from datetime import date
186186
>>> now = date.today()
187187
>>> now
188188
datetime.date(2003, 12, 2)
189189
>>> now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B.")
190190
'12-02-03. 02 Dec 2003 is a Tuesday on the 02 day of December.'
191191

192-
# dates support calendar arithmetic
192+
>>> # dates support calendar arithmetic
193193
>>> birthday = date(1964, 7, 31)
194194
>>> age = now - birthday
195195
>>> age.days

0 commit comments

Comments
 (0)