[Python-checkins] r76224 - python/trunk/Doc/tutorial/stdlib.rst
ezio.melotti
python-checkins at python.org
Thu Nov 12 10:10:02 CET 2009
Author: ezio.melotti
Date: Thu Nov 12 10:10:02 2009
New Revision: 76224
Log:
fix highlight in the datetime example
Modified:
python/trunk/Doc/tutorial/stdlib.rst
Modified: python/trunk/Doc/tutorial/stdlib.rst
==============================================================================
--- python/trunk/Doc/tutorial/stdlib.rst (original)
+++ python/trunk/Doc/tutorial/stdlib.rst Thu Nov 12 10:10:02 2009
@@ -179,7 +179,7 @@
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
@@ -187,7 +187,7 @@
>>> 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
More information about the Python-checkins
mailing list