summaryrefslogtreecommitdiff
path: root/docs/dates.rst
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2013-07-26 16:00:48 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2013-07-26 16:00:48 +0200
commit93a8e893bcb259b7ad54606a7ba9464368057a04 (patch)
tree4026bc625252c1fc7707bd42aa9b14f50c7f9444 /docs/dates.rst
parentad2737e04dc5897c154e8f32409ff8a94668b6cd (diff)
downloadbabel-93a8e893bcb259b7ad54606a7ba9464368057a04.tar.gz
Some documentation updates
Diffstat (limited to 'docs/dates.rst')
-rw-r--r--docs/dates.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/dates.rst b/docs/dates.rst
index 6cd09a3..94474f7 100644
--- a/docs/dates.rst
+++ b/docs/dates.rst
@@ -345,11 +345,10 @@ functions in the ``babel.dates`` module, most importantly the
.. code-block:: pycon
- >>> from pytz import timezone
>>> from babel import Locale
- >>> from babel.dates import get_timezone_name
+ >>> from babel.dates import get_timezone_name, get_timezone
- >>> tz = timezone('Europe/Berlin')
+ >>> tz = get_timezone('Europe/Berlin')
>>> get_timezone_name(tz, locale=Locale.parse('pt_PT'))
u'Hor\xe1rio Alemanha'
@@ -368,4 +367,4 @@ display a list of time-zones to the user.
>>> get_timezone_name(dt, locale=Locale.parse('de_DE'))
u'Mitteleurop\xe4ische Sommerzeit'
>>> get_timezone_name(tz, locale=Locale.parse('de_DE'))
- u'Deutschland'
+ u'Mitteleurop\xe4ische Zeit'