Getutcyear (Date.getutcyear Method); Getyear (Date.getyear 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

Returns
- An integer.
Number
Example
The following example creates a new Date object and uses
seconds value from the Date object:
var today_date:Date = new Date();
trace(today_date.getUTCSeconds());

getUTCYear (Date.getUTCYear method)

public getUTCYear() : Number
Returns the year of this
minus 1900. For example, the year 2000 is represented as 100.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
-
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

getYear (Date.getYear method)

public getYear() : Number
Returns the year of the specified Date object, according to local time. Local time is
determined by the operating system on which Flash Player is running. The year is the full year
minus 1900. For example, the year 2000 is represented as 100.
Availability: ActionScript 1.0; Flash Lite 2.0
according to universal time (UTC). The year is the full year
Date
. The value returned by
if today's date is December 31 or January 1
getUTCSeconds()
Date.getUTCFullYear()
Date.getUTCFullYear()
to return the
and
may differ from the
,
Date
343

Advertisement

Table of Contents
loading

Table of Contents