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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Returns<br />

Number - An integer.<br />

Example<br />

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

Date.getHours(). The value returned by Date.getUTCHours() may differ from the value<br />

returned by Date.getHours(), depending on the relationship between your local time zone<br />

<strong>and</strong> universal time.<br />

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

trace(today_date.getHours()); // display based on local timezone<br />

trace(today_date.getUTCHours()); // display equals getHours() plus or minus<br />

12<br />

See also<br />

getHours (Date.getHours method)<br />

getUTCMilliseconds (Date.getUTCMilliseconds<br />

method)<br />

public getUTCMilliseconds() : Number<br />

Returns the milliseconds (an integer from 0 to 999) 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 getUTCMilliseconds() to return<br />

the milliseconds value from the Date object.<br />

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

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

getUTCMinutes (Date.getUTCMinutes method)<br />

public getUTCMinutes() : Number<br />

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

universal time.<br />

318 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!