Модуль:Bananas: различия между версиями
Перейти к навигации
Перейти к поиску
Karaby (обсуждение | вклад) Нет описания правки |
Karaby (обсуждение | вклад) Нет описания правки |
||
| Строка 3: | Строка 3: | ||
function p.hello() | function p.hello() | ||
return tostring (os.time()),":",tostring (os.time({year=1999, day=11, month=11,})) -- return "Hello, world a!" | return tostring (os.date("%c",-5555)) | ||
--return tostring (os.time()),":",tostring (os.time({year=1999, day=11, month=11,})) -- return "Hello, world a!" | |||
--return tostring (os.time()),":",tonumber(os.time()) | --return tostring (os.time()),":",tonumber(os.time()) | ||
end | end | ||
return p | return p | ||
Версия от 04:02, 5 марта 2015
Для документации этого модуля может быть создана страница Модуль:Bananas/doc
-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}
function p.hello()
return tostring (os.date("%c",-5555))
--return tostring (os.time()),":",tostring (os.time({year=1999, day=11, month=11,})) -- return "Hello, world a!"
--return tostring (os.time()),":",tonumber(os.time())
end
return p