]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Some documentation updates
authorArmin Ronacher <armin.ronacher@active-4.com>
Fri, 26 Jul 2013 14:00:48 +0000 (16:00 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Fri, 26 Jul 2013 14:00:48 +0000 (16:00 +0200)
docs/dates.rst

index 6cd09a3f5eea38e43891c3e4c1c0edb0bee33a4e..94474f79f2932ffa070debd89f0bf99f2c8c9eff 100644 (file)
@@ -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'