diff options
| author | mitnk <whgking@gmail.com> | 2012-07-11 10:57:26 +0800 |
|---|---|---|
| committer | mitnk <whgking@gmail.com> | 2012-07-11 10:57:26 +0800 |
| commit | fe443b11def46828a140bdd5521807e6a6c27bf8 (patch) | |
| tree | ec6430acd28e552d5e1311fdf7315ee5ef507e7e /docs | |
| parent | 76d5daa60f90d3692b3ff3b7f5054e4bc7c1f374 (diff) | |
fixed a typo in timezones docs.
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) |
