time()
Last updated 18/08/2022
The time()
is a function on the five
object which is used to return the current local time as a string.
info
When using the time()
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'