babel_dates.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:talks-python-i18n_l10n 作者: zgoda-mobica 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号