Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

JS.Now

Queries current time as double value.

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

Parameters

Parameter Description Example
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

Release notes

Blog Entries

This function checks for a license.

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


JS.New - JS.ObjectCount

💬 Ask a question or report a problem