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

Number - An integer.

Example

The following example uses the constructor to create a Date object based on the current time and uses the getSeconds() method to return the seconds value from that object:

var my_date:Date = new Date();
trace(my_date.getSeconds());