Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a typo in timezones docs.

  • Loading branch information...
commit fe443b11def46828a140bdd5521807e6a6c27bf8 1 parent 76d5daa
Hugo Wang mitnk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/i18n/timezones.txt
2  docs/topics/i18n/timezones.txt
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.