03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Returns<br />

Number - An integer.<br />

Example<br />

The following example creates a new Date object <strong>and</strong> uses getUTCMinutes() to return the<br />

minutes value from the Date object:<br />

var today_date:Date = new Date();<br />

trace(today_date.getUTCMinutes());<br />

getUTCMonth (Date.getUTCMonth method)<br />

public getUTCMonth() : Number<br />

Returns the month (0 [January] to 11 [December]) of the specified Date object, according to<br />

universal time.<br />

Returns<br />

Number - An integer.<br />

Example<br />

The following example creates a new Date object <strong>and</strong> uses Date.getUTCMonth() <strong>and</strong><br />

Date.getMonth(). The value returned by Date.getUTCMonth() can differ from the value<br />

returned by Date.getMonth() if today's date is the first or last day of a month, depending on<br />

the relationship between your local time zone <strong>and</strong> universal time.<br />

var today_date:Date = new Date();<br />

trace(today_date.getMonth()); // output based on local timezone<br />

trace(today_date.getUTCMonth()); // output equals getMonth() plus or minus<br />

1<br />

See also<br />

getMonth (Date.getMonth method)<br />

getUTCSeconds (Date.getUTCSeconds method)<br />

public getUTCSeconds() : Number<br />

Returns the seconds (an integer from 0 to 59) of the specified Date object, according to<br />

universal time.<br />

Returns<br />

Number - An integer.<br />

Date 319

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!