D-E > Date.setHours

 

Date.setHours

Availability

Flash Player 5.

Usage

myDate.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 the Flash Player is running.