User Guide

268 Chapter 6: ActionScript Core Classes
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());
Date.getTimezoneOffset()
Availability
Flash Player 5.
Usage
my_date.getTimezoneOffset() : Number
Parameters
None.
Returns
An integer.
Description
Method; returns the difference, in minutes, between the computer’s local time and universal time.