Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Date > getUTCHours (Date.getUTCHours method) | |||
public getUTCHours() : Number
Returns the hour (an integer from 0 to 23) of the specified Date object, according to universal time.
Availability: ActionScript 1.0; Flash Player 5
Number - An integer.
The following example creates a new Date object and uses Date.getUTCHours() and Date.getHours(). The value returned by Date.getUTCHours() may differ from the value returned by Date.getHours(), depending on the relationship between your local time zone and universal time.
var today_date:Date = new Date(); trace(today_date.getHours()); // display based on local timezone trace(today_date.getUTCHours()); // display equals getHours() plus or minus 12
getHours (Date.getHours method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001595.html