Getseconds (Date.getseconds Method); Gettime (Date.gettime Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

var monthNames_array:Array = new Array("January", "February", "March",
"April", "May", "June", "July", "August", "September", "October",
"November", "December");
return monthNames_array[month];
}

getSeconds (Date.getSeconds method)

public getSeconds() : Number
Returns the seconds (an integer from 0 to 59) of the specified Date object, according to local
time. Local time is determined by the operating system on which Flash Player is running.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer.
Number
Example
The following example uses the constructor to create a Date object based on the current time
and uses the
getSeconds()
var my_date:Date = new Date();
trace(my_date.getSeconds());

getTime (Date.getTime method)

public getTime() : Number
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.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer.
Number
Example
The following example uses the constructor to create a Date object based on the current time,
and uses the
getTime()
1, 1970:
var my_date:Date = new Date();
trace(my_date.getTime());
486
ActionScript classes
method to return the seconds value from that object:
method to return the number of milliseconds since midnight January

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF