MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 268

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());
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.
268
Chapter 6: ActionScript Core Classes
method to return the number of milliseconds since midnight January 1,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents