def timezone(self, name):
if name not in pytz.all_timezones:
raise ValueError('Timezone \'%s\' not recognized' % name)
try:
self._timezone_group, self._timezone_location = \
name.split('/', 1)
except ValueError:
self._timezone_group = name
self._timezone_location = ''
评论列表
文章目录