Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1    Statistic  

JS.Now

Queries current time as double value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 10.1 Yes Yes Yes Yes Yes
MBS( "JS.Now"; JSRef )   More

Parameters

Parameter Description Example value
JSRef The JavaScript reference number. $js

Result

Returns number or error.

Description

Queries current time as double value.
This is seconds since 1st January 1970 multiplied by 1000 and may contain fraction with microseconds.

Get current time in POSIX milliseconds, as seen by the ECMAScript environment. The return value matches Date.now() with the reservation that sub-millisecond resolution may be available.

Examples

Query current time:

MBS( "JS.Now"; $$JS )

Example result: 1579438706835.8249512

See also

Created 19th January 2020, last changed 19th January 2020


JS.New   -   JS.ObjectCount

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins