function ReadableDate.fromTime(g,j)local D=j or DEFAULT_FORMAT local v=os.date("\042\116",g)for g,j in pairs(v)do D=string.gsub(D,string.format("\036\037\115",g),tostring(j))end return D end return ReadableDate

function ReadableDate.fromTime(time, format)
	local output = format or DEFAULT_FORMAT
	local dateTable = os.date("*t", time)

	for type, amount in pairs(dateTable) do
		output = string.gsub(output, string.format("$%s", type), tostring(amount))
	end

	return output
end

return ReadableDate
