--!strict

local fmt = string.format

local template = "%02d:%02d:%02d"

local function formatTime(value: number): string
	local seconds = value % 60
	local minutes = math.floor(value / 60) % 60
	local hours = math.floor(value / (60 * 60))
	
	return fmt(template, hours, minutes, seconds)
end

return formatTime
