Merge pull request #199 from mitnk/master

Fixed a typo in the timezones document.
This commit is contained in:
Adrian Holovaty 2012-07-11 15:05:04 -07:00
commit f487524216
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ Setup
Finally, our calendar system contains interesting traps for computers:: Finally, our calendar system contains interesting traps for computers::
>>> import datetime >>> import datetime
>>> def substract_one_year(value): # DON'T DO THAT! >>> def one_year_before(value): # DON'T DO THAT!
... return value.replace(year=value.year - 1) ... return value.replace(year=value.year - 1)
>>> one_year_before(datetime.datetime(2012, 3, 1, 10, 0)) >>> one_year_before(datetime.datetime(2012, 3, 1, 10, 0))
datetime.datetime(2011, 3, 1, 10, 0) datetime.datetime(2011, 3, 1, 10, 0)