ListTimeZones

サマリー

Lists valid time zone strings to be used with the timeZone property on the LayerTime class.

説明

The timeZone property on the LayerTime class only works with specific time zone strings. This function allows you to view a valid list of strings.

構文

ListTimeZones ({wildcard})
パラメーター説明データ タイプ
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.

(デフォルト値は次のとおりです None)

String
戻り値
データ タイプ説明
List

Lists valid time zone strings to be used with the timeZone property on the LayerTime class.

コードのサンプル

ListTimeZones example

The following script will print all time zones that contain the text Canada.

import arcpy
tzList = arcpy.mp.ListTimeZones("*Canada*")
print(tzList)