Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Converts timestamp to UTC.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Time | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
TimeStamp | The input time stamp in local time zone. | ||
AsText | Boolean to decide whether to pass back timestamp (0, default) or text (1). | 1 | Optional |
Returns value or error.
Convert local time to UTC:
MBS( "Time.TimeStampToUTC"; Get(CurrentTimeStamp) )
Example result: 11.12.2016 10:36:44
Convert time to UTC text:
MBS( "Time.TimeStampToUTC"; Get(CurrentTimeStamp); 1 )
Example result: 2016-12-11T10:36:50Z
This function is free to use.
Created 6th February 2016, last changed 9th November 2021