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 uses the constructor to create a Date object based on the current time<br />

<strong>and</strong> uses the getSeconds() method to return the seconds value from that object:<br />

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

trace(my_date.getSeconds());<br />

getTime (Date.getTime method)<br />

public getTime() : Number<br />

Returns the number of milliseconds since midnight January 1, 1970, universal time, for the<br />

specified Date object. Use this method to represent a specific instant in time when comparing<br />

two or more Date objects.<br />

Returns<br />

Number - An integer.<br />

Example<br />

The following example uses the constructor to create a Date object based on the current time,<br />

<strong>and</strong> uses the getTime() method to return the number of milliseconds since midnight January<br />

1, 1970:<br />

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

trace(my_date.getTime());<br />

getTimezoneOffset (Date.getTimezoneOffset<br />

method)<br />

public getTimezoneOffset() : Number<br />

Returns the difference, in minutes, between the computer's local time <strong>and</strong> universal time.<br />

Returns<br />

Number - An integer.<br />

Date 315

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

Saved successfully!

Ooh no, something went wrong!