Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #199 from mitnk/master

Fixed a typo in the timezones document.
  • Loading branch information...
commit f4875242161fa741216f5941e029ad5f78a74ec3 2 parents 76d5daa + fe443b1
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/i18n/timezones.txt
View
2  docs/topics/i18n/timezones.txt
@@ -509,7 +509,7 @@ Setup
Finally, our calendar system contains interesting traps for computers::
>>> 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)
>>> one_year_before(datetime.datetime(2012, 3, 1, 10, 0))
datetime.datetime(2011, 3, 1, 10, 0)

0 comments on commit f487524

Please sign in to comment.
Something went wrong with that request. Please try again.