모듈:연습장/Wikiwater2020/test

위키백과, 우리 모두의 백과사전.
local p = {}
 
function p.hello(frame)
	return "Hello, world!"
end

function p.test(frame)
    return "Lua module test"
end

local function getCurrentKstTime()
	local ksttime = os.time() + 9 * 60 * 60
	return os.date('%Y년 ', ksttime)
		.. os.date('%m월 ', ksttime):gsub("^0+", "")
		.. os.date('%d일 ', ksttime):gsub("^0+", "")
		.. '(' .. getDay(os.date('%a'), ksttime) .. ') '
		.. os.date('%H:%M (KST)', ksttime)
end
 
return p