time() (System)

Usage

-- Lingo syntax 
_system.time() 
 
// JavaScript syntax 
_system.time();

Description

System method; returns the current time in the system clock as a string. The format of the time string depends on the computer's time settings.

Parameters

None.

Example

The following handler outputs the current time to a text field.

-- Lingo syntax 
on exitFrame 
    member("clock").text = _system.time() 
end 
 
// JavaScript syntax 
function exitFrame() { 
    member("clock").text = _system.time(); 
}