Модуль:Bananas: различия между версиями

Материал из Буквицы
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Строка 3: Строка 3:


function p.hello()
function p.hello()
return tostring (os.date("%c",-555999999995)),
return tostring (os.date("%c",4294967295)),'@',
tostring (os.date("%c",2147483647)),'@',
tostring (os.date("%c",-2147483647)),'@',
tostring (os.date("%c",2147483650)),'@',
tostring (os.date("%c",-2147483650)),'@',
  tostring (os.time()),":",tonumber (os.time({year=1901, day=11, month=11,})) -- return "Hello, world a!"
  tostring (os.time()),":",tonumber (os.time({year=1901, day=11, month=11,})) -- return "Hello, world a!"
--return tostring (os.time()),":",tonumber(os.time())
--return tostring (os.time()),":",tonumber(os.time())

Версия от 04:56, 6 марта 2015

Для документации этого модуля может быть создана страница Модуль:Bananas/doc

-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}

function p.hello()
return tostring (os.date("%c",4294967295)),'@',
tostring (os.date("%c",2147483647)),'@',
tostring (os.date("%c",-2147483647)),'@',
tostring (os.date("%c",2147483650)),'@',
tostring (os.date("%c",-2147483650)),'@',
 tostring (os.time()),":",tonumber (os.time({year=1901, day=11, month=11,})) -- return "Hello, world a!"
--return tostring (os.time()),":",tonumber(os.time())
end

return p