FromUniversalTime

Typehandler
Dictionarylibrary.timezone
LibraryTime zone Library
Syntax
FromUniversalTime(<pSeconds>,<pTimeZone>)
Associationscom.livecode.library.timezone
Summary

Convert universal time to local time

Platformsmobile, desktop
Parameters
NameTypeDescription
pSeconds

The universal time, i.e. seconds since the beginning of the epoch.

pTimeZone

The time zone, in the form returned by the TimeZones function.

Example
local tDateTime
put "2018,2,14,13,38,0,4" into tDateTime
convert tDateTime to seconds
put FromUniversalTime(tDateTime, "Antarctica/Vostok") into tDateTime
convert tDateTime to dateitems
-- tDateTime contains "2018,2,14,19,38,0,4"
Values
NameTypeDescription
return

The local time

RelatedHandler: TimeZones
Description

Use the FromUniversalTime function to find the local time for the specified timezone, given the universal time.

Tagsdatetime,library