Name
Date.setHours( ) Method — assign the hour of the day
Availability
Flash 5
Synopsis
date.setHours(hour)
Arguments
- hour
An integer from 0 (midnight) to 23 (11 p.m.) specifying the new hour of the day for
date
.
Returns
An integer representing the number of milliseconds between the new date and midnight, January 1, 1970.
See Also
Date.getHours( )
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.