method Date.setSeconds
Private
Date.setSeconds(
sec: number,
ms?: number,
): number

Sets the seconds value in the Date object using local time.

Parameters

sec: number

A numeric value equal to the seconds value.

optional
ms: number

A numeric value equal to the milliseconds value.

Return Type

number