你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
datetime_list_timezones()
Returns a list of supported timezones a time-zone specification.
Syntax
datetime_list_timezones()
Parameters
None, the function doesn't have any parameters.
Returns
A list of timezones supported by the Internet Assigned Numbers Authority (IANA) Time Zone Database.
Example
print datetime_list_timezones()
Output print datetime_list_timezones()
Related content
- To convert from UTC to local, see datetime_utc_to_local()
- To convert a datetime from local to UTC, see datetime_local_to_utc()
- Timezones
- format_datetime()