หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Provides a list of supported timezones a time-zone specification.
Syntax
datetime_list_timezones()
Parameters
None, the function doesn't have any parameters.
Returns
Returns a list of timezones supported by the Internet Assigned Numbers Authority (IANA) Time Zone Database.
Examples
The following example shows how to get a list of all supported timezones.
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()