Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Show current system clock
--============================================================================== -- Show current system clock --============================================================================== function get_date() return (os.date("!%Y.%m.%d %H:%M:%S"):gsub('(%d%d):(%d%d):(%d%d)', function (h,m,s) h = tonumber(h) return ('%2i:%02i:%02i %s'):format(h > 12 and h-12 or h,m,s,h > 12 and 'pm' or 'am') end)) end print(get_date())
run
|
edit
|
history
|
help
2
Non-Lua core for new scripting languages (Beta)
Random numbers in Lua. Range: 1-49. Sets of numbers without duplicates
Percentage Calculator (Subscribe to Madflag19)
lua5.3: ...Desktop/rextester_linux_2.0/usercode/68368288/source.lua:166: unexpected symbol near '}'
test123
фыв
Exponential from Two Points
Word by Word string partition in Lua
The Pyramid in the two-dimensional array made of random stones - Lua
ok