diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2012-07-11 15:05:04 -0700 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2012-07-11 15:05:04 -0700 |
| commit | f4875242161fa741216f5941e029ad5f78a74ec3 (patch) | |
| tree | ec6430acd28e552d5e1311fdf7315ee5ef507e7e /docs | |
| parent | 76d5daa60f90d3692b3ff3b7f5054e4bc7c1f374 (diff) | |
| parent | fe443b11def46828a140bdd5521807e6a6c27bf8 (diff) | |
Merge pull request #199 from mitnk/master
Fixed a typo in the timezones document.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/timezones.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/i18n/timezones.txt b/docs/topics/i18n/timezones.txt index 1d9dd4b3c6..f3bb13ab03 100644 --- a/docs/topics/i18n/timezones.txt +++ b/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) |
