SWiSH Player Support
SWF5 or later - Supported Internally
Syntax
DateObj.getHours()
Arguments
none
Returns
an integer
Description
Method; returns an integer (from 0 to 23; 0 being midnight, 23 being 11:00pm) representing the current hour of the Date Object according to Local Time.
Sample
onFrame (1) {
theDate = new Date();
trace(theDate.getHours());
}
// If it is 5:00pm on your system clock - "17" will be returned in the debug window.