setMilliseconds (JavaScript)

Sets the millisecond in local time.

Defined in

Date (Standard - JavaScript)

Syntax

setMilliseconds(ms:int) : long
Parameters Description
ms The millisecond in local time where the milliseconds in a second are 0 through 999.
Return value Description
long The new time in numeric format.

Examples

This computed label sets the current time with the millisecond at 0.
var date = new Date();
date.setMilliseconds(0);
date.toLocaleTimeString()