FearlessStudios

getTime

Server export to read the current synced time

getTime

Returns the current synchronized in-game time.

Usage

server.lua
local time = exports["FS-Weather"]:getTime()
print(("%02d:%02d"):format(time.hour, time.minute))

Returns

Prop

Type