Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib.rst @ 57201:4f1c7b7bfcbd 3.1
fix highlight in the datetime example
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Thu, 12 Nov 2009 10:41:24 +0000 |
| parents | d06a3ebf306f |
| children | e23f5ec93315 |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib.rst Wed Nov 11 21:01:33 2009 +0000 +++ b/Doc/tutorial/stdlib.rst Thu Nov 12 10:41:24 2009 +0000 @@ -181,7 +181,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 @@ -189,7 +189,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
