comparison babel/dates.py @ 518:3609f6afca46

fixed spelling in docstring
author fschwarz
date Sat, 05 Mar 2011 09:55:42 +0000
parents f5097a631192
children 5dc1835664dc
comparison
equal deleted inserted replaced
517:f5097a631192 518:3609f6afca46
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