Date.getTime()
Availability
Flash Player 5.
Usage
my_date.getTime() : Number
Parameters
None.
Returns
An integer.
Description
Method; returns the number of milliseconds since midnight January 1, 1970, universal time, for
the specified Date object. Use this method to represent a specific instant in time when comparing
two or more Date objects.
Example
The following example uses the constructor to create a Date object based on the current time, and
uses the
getTime()
1970:
var my_date:Date = new Date();
trace(my_date.getTime());
method to return the number of milliseconds since midnight January 1,
Date.getTime()
249
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers