Specifications
Returns the number of milliseconds since midnight on the 1st January
1970 using local time.
var d = new Date( 1975, 12, 25, 22, 30 );
var x = d.getTime(); // x == 1.91457e+11
getTime( ) : Number
Sets the day of the month to the specified dayOfTheMonth in local
time.
var d = new Date( 1975, 12, 25, 22, 30 );
d.setDate( 30 ); // d == 1975-12-30T22:30:00
setDate( dayOfTheMonth
: Number)
Sets the year to the specified year in local time. If the month,
optMonth is specified, it must be in the range 0..11. If the
optDayOfTheMonth is specified it must be in the range 1..31.
var d = new Date( 1975, 12, 25, 22, 30 );
setYear( year : Number)
d.setYear( 1980 ); // d == 1980-12-30T22:30:00
d.setYear( 1980, 11, 2 ); // d == 1980-12-02T22:30:00
Sets the hour to the specified hour, which must be in the range
0..23, in local time. The minutes, seconds and milliseconds past the
setHours( hour : Number)
hour (optMinutes, optSeconds and optMilliseconds) can also be
specified.
var d = new Date( 1975, 12, 25, 22, 30 );
d.setHours( 10 ); // d == 1980-12-30T10:30:00
Sets the milliseconds component of the date to the specified value
in local time.
var d = new Date( 1975, 12, 25, 22, 30 );
setMilliseconds(
milliseconds : Number)
d.setMilliseconds( 998 ); // d == 1980-12-30T10:30:00:998
Sets the minutes to the specified minutes, which must be in the
range 0..59, in local time. The seconds and milliseconds past the
minute (optSeconds and optMilliseconds) can also be specified.
var d = new Date( 1975, 12, 25, 22, 30 );
d.setMinutes( 15 ); // d == 1980-12-30T10:15:00
setMinutes( minutes :
Number)
Sets the month to the specified month, which must be in the range
0..11, in local time. The day of the month (optDayOfTheMonth) may
also be specified.
var d = new Date( 1975, 12, 25, 22, 30 );
d.setMonth( 0, 11 ); // d == 1980-01-11T22:30:00
setMonth( month :
Number)
377
Enfocus Switch 10










