Date.gettime() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents