def timezone_names():
print('Timezone data')
tznames = ('Europe/Athens', 'US/Alaska', 'Africa/Johannesburg')
for (name, symbol, params) in LOCALES:
locale = Locale(*params)
for tzname in tznames:
tz = get_timezone(tzname)
loc_name = get_timezone_location(tz, locale, False)
city = get_timezone_location(tz, locale, True)
print('\tTZ location for {0}: {1}, city: {2}'.format(tzname, loc_name, city))
babel_dates.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录