Skip to main content

time()

Last updated 10/09/2024

The
time()
is a function on the
Five
object that returns the current local time as a string.


info
When using the
time()
function on a table event the data type for the field must be Time.

Available

Client and Server

Function Signature
time(): string;

Return Value

A string representing the local current time, formatted as hh:mm:ss

Example Output

Output
console.log(five.time()); // output '03:25:00'

Examples

time()