User Guide
Date.getTime() 249
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() method to return the number of milliseconds since midnight January 1,
1970:
var my_date:Date = new Date();
trace(my_date.getTime());