Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Time.TimeStampToUTC
Converts timestamp to UTC.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Time | 6.1 | Yes | Yes | Yes | Yes | Yes |
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 OK 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
Blog Entries
Release notes
- 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.
Created 6th February 2016, last changed 11st December 2016
Time.Sleep - Time.TimeZoneOffset
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins