converttolocaltime - 脚本和图表函数

UTCGMT 时间戳转换为本地时间作为对偶值。此地方可为全世界任何一个城市,地方和时区。 

Syntax:  

ConvertToLocalTime(timestamp [, place [, ignore_dst=false]])

Return data type:

Arguments:  

参数 说明
timestamp 时间戳或对时间戳求值的表达式都可用于转换。
place

下面的有效地方和时区表格中的地方或时区。或者,可以使用 GMTUTC 定义本地时间。以下值和时间偏移量范围有效:

  • GMT
  • GMT-12:00 - GMT-01:00
  • GMT+01:00 - GMT+14:00
  • UTC
  • UTC-12:00 - UTC-01:00
  • UTC+01:00 - UTC+14:00
备注: 只能使用标准时间偏移量。不能使用任意时间偏移量,例如,GMT-04:27
ignore_dst 如果要忽略 DST(夏令时),则设置为 True

结果时间调整为夏令时,除非将 ignore_dst 设置为 True

有效的地方和时区
Abu Dhabi Central America Kabul Newfoundland Tashkent
Adelaide Central Time (US & Canada) Kamchatka Novosibirsk Tbilisi
Alaska Chennai Karachi Nuku'alofa Tehran
Amsterdam Chihuahua Kathmandu Osaka Tokyo
Arizona Chongqing Kolkata Pacific Time (US & Canada) Urumqi
Astana Copenhagen Krasnoyarsk Paris Warsaw
Athens Darwin Kuala Lumpur Perth Wellington
Atlantic Time (Canada) Dhaka Kuwait Port Moresby West Central Africa
Auckland Eastern Time (US & Canada) Kyiv Prague Vienna
Azores Edinburgh La Paz Pretoria Vilnius
Baghdad Ekaterinburg Lima Quito Vladivostok
Baku Fiji Lisbon Riga Volgograd
Bangkok Georgetown Ljubljana Riyadh Yakutsk
Beijing Greenland London Rome Yerevan
Belgrade Greenwich Mean Time : Dublin Madrid Samoa Zagreb
Berlin Guadalajara Magadan Santiago  
Bern Guam Mazatlan Sapporo  
Bogota Hanoi Melbourne Sarajevo  
Brasilia Harare Mexico City Saskatchewan  
Bratislava Hawaii Mid-Atlantic Seoul  
Brisbane Helsinki Minsk Singapore  
Brussels Hobart Monrovia Skopje  
Bucharest Hong Kong Monterrey Sofia  
Budapest Indiana (East) Moscow Solomon Is.  
Buenos Aires International Date Line West Mountain Time (US & Canada) Sri Jayawardenepura  
Cairo Irkutsk Mumbai St. Petersburg  
Canberra Islamabad Muscat Stockholm  
Cape Verde Is. Istanbul Nairobi Sydney  
Caracas Jakarta New Caledonia Taipei  
Casablanca Jerusalem New Delhi Tallinn