Getutcday (Date.getutcday Method); Getutcfullyear (Date.getutcfullyear Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

See also
getDate (Date.getDate method)

getUTCDay (Date.getUTCDay method)

public getUTCDay() : Number
Returns the day of the week (0 for Sunday, 1 for Monday, and so on) 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.getDay()
returned by
Date.getDay(),
and universal time.
var today_date:Date = new Date();
trace(today_date.getDay()); // output will be based on local timezone
trace(today_date.getUTCDay()); // output will equal getDay() plus or minus
one
See also
getDay (Date.getDay method)

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 Player 5
Returns
- An integer.
Number
488
ActionScript classes
Date.getUTCDay()
depending on the relationship between your local time zone
and
Date.getUTCDay()
can differ from the value

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF