function ReadableDate.fromTime(W,S)local v=S or DEFAULT_FORMAT local G=os.date("\042\116",W)for W,S in pairs(G)do v=string.gsub(v,string.format("\036\037\115",W),tostring(S))end return v end return ReadableDate
--[[
    Gets the os.date of specified os.time, and then returns a formatted string of human readable data. If no format is
    specified, the string will fall back on the default format. Create formats by appending os.date keys with $.
]]
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
