362 Chapter 12: ActionScript Dictionary
Description
Method; sets the year of the specified Date object, according to local time, and returns the new
time in milliseconds. If the
month and date parameters are specified, they are also set to local
time. Local time is determined by the operating system on which Flash Player is running.
Calling this method does not modify the other fields of the specified Date object but
Date.getUTCDay() and Date.getDay() may report a new value if the day of the week changes
as a result of calling this method.
Date.setHours()
Availability
Flash Player 5.
Usage
my_date.setHours(hour)
Parameters
hour
An integer from 0 (midnight) to 23 (11 p.m.).
Returns
An integer.
Description
Method; sets the hours for the specified Date object according to local time, and returns the new
time in milliseconds. Local time is determined by the operating system on which Flash Player
is running.
Date.setMilliseconds()
Availability
Flash Player 5.
Usage
my_date.setMilliseconds(millisecond)
Parameters
millisecond
An integer from 0 to 999.
Returns
An integer.
Description
Method; sets the milliseconds for the specified Date object according to local time, and returns
the new time in milliseconds. Local time is determined by the operating system on which Flash
Player is running.