getMilliseconds function

Returns the milliseconds for the specified date and time, according to local time.
Arguments
0
Return values (number)
A number (0–999), representing milliseconds.
Syntax
dateObj.getMilliseconds()
Example
Example Result
With Button1 on a display, this script is added as a custom script to a Button1 action.
var today = new Date();
Dsp.Button1.Label = today.getMilliseconds();
Assuming the current local time is 12:39:18.789: Returns "789".
With Button2 nested inside a GEM, this script is added as a custom script on a Button2 action.
var moonLanding = new Date("July 20, 69 00:20:18");
moonLanding.setMilliseconds(123);
Gem.Button2.Label = moonLanding.getMilliseconds();
Returns "123" on Button2's label.