summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPTrottier <31802216+PTrottier@users.noreply.github.com>2018-04-27 10:42:56 -0400
committerGitHub <noreply@github.com>2018-04-27 10:42:56 -0400
commitcbc8cf8308d0958ddbde7a01c430c58a40c00308 (patch)
tree6d107edb0cc1dd407946919fcc0a27ff23c0cc0c /docs
parent1378a3d5e7f7f111ea7828ff7429f0abbb513700 (diff)
downloadbabel-cbc8cf8308d0958ddbde7a01c430c58a40c00308.tar.gz
Month and Day must be valid tokens
````>>> dt = datetime(2007, 04, 01, 15, 30, tzinfo=UTC) File "<stdin>", line 1 dt = datetime(2007, 04, 01, 15, 30, tzinfo=UTC) ^ SyntaxError: invalid token```` See: https://docs.python.org/3.5/library/datetime.html#datetime.datetime.month
Diffstat (limited to 'docs')
-rw-r--r--docs/dates.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dates.rst b/docs/dates.rst
index bb3398a..0ddd7bc 100644
--- a/docs/dates.rst
+++ b/docs/dates.rst
@@ -286,7 +286,7 @@ directly interface with it from within Babel:
>>> from datetime import time
>>> from babel.dates import get_timezone, UTC
- >>> dt = datetime(2007, 04, 01, 15, 30, tzinfo=UTC)
+ >>> dt = datetime(2007, 4, 1, 15, 30, tzinfo=UTC)
>>> eastern = get_timezone('US/Eastern')
>>> format_datetime(dt, 'H:mm Z', tzinfo=eastern, locale='en_US')
u'11:30 -0400'