JS.Now
------

Queries current time as double value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [JavaScript](component_JavaScript.md) | [10.1](newinversion101.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "JS.Now"; JSRef ) 

**MBS**( **"JS.Now";** /\* Queries current time as double value. \*/  
**$JSRef**) /\* The JavaScript reference number.e.g. $js \*/ 

### 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 )  
<small>  
Example result: 1579438706835.8249512</small>### See also

- [JS.New](JSNew.md)
- [JS.TimeToDateComponents](JSTimeToDateComponents.md)
- [JS.TimeToUTCDate](JSTimeToUTCDate.md)

### Release notes

- **Version 10.1**
    - Added [time](https://www.mbsplugins.eu/component_Time.shtml) functions for [JavaScript](https://www.mbsplugins.eu/component_JavaScript.shtml) functions: [JS.Now](https://www.mbsplugins.eu/JSNow.shtml), [JS.TimeToDateComponents](https://www.mbsplugins.eu/JSTimeToDateComponents.shtml), [JS.TimeToUTCDate](https://www.mbsplugins.eu/JSTimeToUTCDate.shtml) and [JS.UTCDateToTime](https://www.mbsplugins.eu/JSUTCDateToTime.shtml).

### Blog Entries

- [New in the MBS FileMaker Plugin 10.1](https://www.mbsplugins.de/archive/2020-03-17/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr1](https://www.mbsplugins.de/archive/2020-01-30/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[JS.New](JSNew.md) - [JS.ObjectCount](JSObjectCount.md)

[HTML Version](JSNow.shtml)