Language Reference setTime Method


Description

Sets the date and time value directly in the Date object.

Syntax

dateObj.setTime( numElapsed )

Arguments

numElapsed: An integer value representing the number of elapsed seconds between the desired time and midnight, January 1, 1970.

Remarks

See also getTime.