EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Getutcmonth (Date.getutcmonth Method); Getutcseconds (Date.getutcseconds Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
342 ActionScript classes
Returns
Number - An integer.
Example
The following example creates a new Date object and uses
getUTCMinutes() to return the
minutes value from the Date object:
var today_date:Date = new Date();
trace(today_date.getUTCMinutes());
getUTCMonth (Date.getUTCMonth method)
public getUTCMonth() : Number
Returns the month (0 [January] to 11 [December]) of the specified Date object, according to
universal time.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
Number - An integer.
Example
The following example creates a new Date object and uses
Date.getUTCMonth() and
Date.getMonth(). The value returned by Date.getUTCMonth() can differ from the value
returned by
Date.getMonth() if today's date is the first or last day of a month, depending on
the relationship between your local time zone and universal time.
var today_date:Date = new Date();
trace(today_date.getMonth()); // output based on local timezone
trace(today_date.getUTCMonth()); // output equals getMonth() plus or minus
1
See also
getMonth (Date.getMonth method)
getUTCSeconds (Date.getUTCSeconds method)
public getUTCSeconds() : Number
Returns the seconds (an integer from 0 to 59) of the specified Date object, according to
universal time.
Availability: ActionScript 1.0; Flash Lite 2.0

Table of Contents

Related product manuals