Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Converts timestamp to UTC.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Time 6.1 Yes Yes Yes Yes Yes

MBS( "Time.TimeStampToUTC"; TimeStamp { ; AsText } )


Parameter Description Example value
TimeStamp The input time stamp in local time zone.
AsText Optional
Boolean to decide whether to pass back timestamp (0, default) or text (1).


Returns OK or error.


Converts timestamp to UTC.
Returns either timestamp in UTC (by removing time zone offset) or as text in format like this: 2014-08-18T12:00:00Z.


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

Time.Sleep   -   Time.UnixTimeStamp

Feedback: Report problem or ask question.

MBS Xojo Plugins