Kaydet (Commit) 87e5d347 authored tarafından Ezio Melotti's avatar Ezio Melotti

fix highlight in the datetime example

üst 79707ca8
......@@ -181,7 +181,7 @@ focus of the implementation is on efficient member extraction for output
formatting and manipulation. The module also supports objects that are timezone
aware. ::
# dates are easily constructed and formatted
>>> # dates are easily constructed and formatted
>>> from datetime import date
>>> now = date.today()
>>> now
......@@ -189,7 +189,7 @@ aware. ::
>>> now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B.")
'12-02-03. 02 Dec 2003 is a Tuesday on the 02 day of December.'
# dates support calendar arithmetic
>>> # dates support calendar arithmetic
>>> birthday = date(1964, 7, 31)
>>> age = now - birthday
>>> age.days
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment