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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Converts time value to timestamp.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScript | 10.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
JSRef | The JavaScript reference number. | $js |
Time | The time value. | 1579438861538 |
Returns timestamp or error.
Query now as timestamp:
MBS( "JS.TimeToUTCDate"; $$JS; MBS( "JS.Now"; $$JS ))
Example result: 19.01.2020 12:59:46
Query time in JavaScript, convert to UTC and format in FileMaker:
Let (
[
~js = MBS( "JS.New" );
~fmTime = MBS( "JS.TimeToUTCDate"; ~js ; MBS( "JS.Now"; ~js ));
~releasejs = MBS( "JS.Release"; ~js )
];
MBS( "Time.Format"; ~fmTime ; "%a, %d %b %Y %H:%M:%S") & " GMT"
)
Example result: "Wed, 03 Jun 2020 07:12:17 GMT"
This function checks for a license.
Created 19th January 2020, last changed 29th October 2020