Resumen
Lists valid time zone strings to be used with the timeZone or timeZoneIANA properties on the LayerTime class.
Debate
The timeZone or timeZoneIANA properties on the LayerTime class only work with specific time zone strings. This function allows you to view a valid list of strings.
Sintaxis
ListTimeZones ({wildcard}, {time_zone_type})
Parámetro | Explicación | Tipo de datos |
wildcard | A wildcard is based on the time zone string and is not case sensitive. A combination of asterisks (*) and characters can be used to help limit the resulting list. (El valor predeterminado es None) | String |
time_zone_type | A string constant that controls the list of available time zone types to filter from.
(El valor predeterminado es MICROSOFT_WINDOWS) | String |
Tipo de datos | Explicación |
List | A list of valid time zone strings to be used with the timeZone or timeZoneIANA properties on the LayerTime class. |
Muestra de código
The following script will print all time zones that contain the text Canada.
import arcpy
tzList = arcpy.mp.ListTimeZones("*Canada*")
print(tzList)