Datetime Intrinsic Functions - AsUniversalDateTime Method
Return the variable as a universal datetime
Member of Datetime Intrinsic Functions (PRIM_LIBI.IDateTimeIntrinsics)
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
Result | *Result (Optional) | DateTime | Resulting datetime |
Details
AsUniversalDateTime returns the supplied datetime adjusted to UTC (Universal Coordinated Time) based on the time zone specified on the executing system.
The time zone is the difference in time between the executing system and UTC (Universal Coordinated Time).
Example
In this example, a local date time of 2014-12-31 12:34:56 would return 2014-12-31 17:34:56 for US Eastern Standard Time (-5 Hours UTC)
#Result := #LocalTime.AsUniversalDateTime