Date.setUTCMilliseconds

setUTCMilliseconds – Set the milliseconds, according to universal time (0–999).

Description

Date.setUTCMilliseconds(integer milliseconds)

Parameters

Name Description Type Default Optional
milliseconds integer No

Return values

Integer. The new timestamp.

Examples

Example #1 – setUTCMilliseconds example
var date = new Date(Date.UTC(2015, 9, 21, 16, 29, 00)); console.log(date.getTime()); // 1445444940000 console.log(date.setUTCMilliseconds(10)); // 1445444940010

External references