Skip to main content

converttolocaltime - script and chart function

Converts a UTC or GMT timestamp to local time as a dual value. The place can be any of a number of cities, places and time zones around the world. 

Syntax:  

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

 

Also GMT, GMT-01:00, GMT+04:00 etc. are valid places.

The resulting time is adjusted for daylight-saving time, unless the third parameter is set to True.

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!