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 date to time value.
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 |
TS | The timestamp to convert. Must be in UTC timezone. |
Returns double or error.
Tests time functions:
Let([
c = MBS( "JS.New" );
r = MBS( "JS.UTCDateToTime"; c; Get(CurrentTimeStamp) );
d = MBS( "JS.TimeToDateComponents"; c; r )
]; r & ¶ & d)
Example result:
1582121231000
{
"year": 2020,
"month": 2,
"day": 19,
"hours": 14,
"minutes": 7,
"seconds": 11,
"milliseconds": 0,
"weekday": 3,
"timezone": "UTC",
"weekdayText": "Wednesday"
}
This function checks for a license.
Created 19th January 2020, last changed 19th January 2020