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
Creating habits v2, Lua (WIP)
Goalless DRAWS
Creating habits. Lua
ok
1
1
PAID HACK PuBG
Word by Word string partition in Lua
Volume of sphere
Relative Angles