comparison babel/dates.py @ 516:606af7395ad8

fixed spelling in docstring
author fschwarz
date Sat, 05 Mar 2011 09:55:42 +0000
parents 3413235af4d8
children 9d6fa3d28473
comparison
equal deleted inserted replaced
515:3413235af4d8 516:606af7395ad8
219 219
220 def get_timezone_location(dt_or_tzinfo=None, locale=LC_TIME): 220 def get_timezone_location(dt_or_tzinfo=None, locale=LC_TIME):
221 """Return a representation of the given timezone using "location format". 221 """Return a representation of the given timezone using "location format".
222 222
223 The result depends on both the local display name of the country and the 223 The result depends on both the local display name of the country and the
224 city assocaited with the time zone: 224 city associated with the time zone:
225 225
226 >>> from pytz import timezone 226 >>> from pytz import timezone
227 >>> tz = timezone('America/St_Johns') 227 >>> tz = timezone('America/St_Johns')
228 >>> get_timezone_location(tz, locale='de_DE') 228 >>> get_timezone_location(tz, locale='de_DE')
229 u"Kanada (St. John's)" 229 u"Kanada (St. John's)"
Copyright (C) 2012-2017 Edgewall Software