May 2011
Intermediate to advanced
1096 pages
40h 54m
English
Date.setTime() — set a Date in milliseconds
date.setTime(milliseconds)
millisecondsThe 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.
The milliseconds argument. Prior
to ECMAScript standardization, this method returns nothing.
Read now
Unlock full access