Date.setTime( ) |
set a Date in milliseconds |
Availability
JavaScript 1.0; JScript 1.0; ECMAScript
v1
Synopsis
date.setTime(milliseconds)
Arguments
- milliseconds
-
The number of milliseconds between the desired date and time and
midnight GMT on January 1, 1970. A millisecond value of this type may
also be passed to the Date( ) constructor and may
be obtained by calling the Date.UTC( ) and
Date.parse( ) methods. Representing a date in this
millisecond format makes it independent of time zone.
Returns
The milliseconds argument. Prior to
ECMAScript standardization, this method returns nothing.
|