Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Time.TimeStampToUTC
Converts timestamp to UTC.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Time | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Time.TimeStampToUTC"; TimeStamp { ; AsText } ) More
Parameters
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 |
Result
Returns value or error.
Description
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.
Examples
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
Release notes
- Version 11.3
- Fixed a problem with a math function, which affected time zone calculation for EmailParser.SentDate, EmailParser.ReceiveDate and Time.TimeStampToUTC functions (broken in v11.2).
- Version 10.4
- Fixed time zone issue in Time.TimeStampToUTC with Windows with daylight saving.
- Version 9.1
- Fixed bug for Time.TimeStampToUTC on Windows with day change.
Blog Entries
- MBS FileMaker Plugin, version 11.3pr2
- MBS FileMaker Plugin, version 10.4pr6
- MBS FileMaker Plugin, version 9.1pr4
This function is free to use.
Created 6th February 2016, last changed 9th November 2021