Example
The following example creates a new Date object and uses
Date.getFullYear()
value returned by
Date.getFullYear()
depending on the relationship between your local time zone and universal time.
var today_date:Date = new Date();
trace(today_date.getFullYear()); // display based on local timezone
trace(today_date.getUTCFullYear()); // displays getYear() plus or minus 1
See also
getFullYear (Date.getFullYear method)
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
Returns
- An integer.
Number
Example
The following example creates a new Date object and uses
. The value returned by
Date.getHours()
returned by
Date.getHours(),
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
See also
getHours (Date.getHours method)
. The value returned by
if today's date is December 31 or January 1
Date.getUTCHours()
depending on the relationship between your local time zone
Date.getUTCFullYear()
Date.getUTCFullYear()
Date.getUTCHours()
may differ from the value
and
may differ from the
,
and
Date
489
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?