Getutcfullyear (Date.getutcfullyear Method); Getutchours (Date.getutchours Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

getUTCFullYear (Date.getUTCFullYear method)

public getUTCFullYear() : Number
Returns the four-digit year of the specified Date object, according to universal time.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- An integer.
Number
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 Lite 2.0
Returns
- An integer.
Number
340
ActionScript classes
. The value returned by
if today's date is December 31 or January 1
Date.getUTCFullYear()
Date.getUTCFullYear()
and
may differ from the
,

Advertisement

Table of Contents
loading

Table of Contents