time()
Last updated 5/02/2024
The time()
is a function on the Five
object used to return 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'