time()
Last updated 10/09/2024
Thetime()
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:ssExample Output
Output
console.log(five.time()); // output '03:25:00'