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
personal use
Volume of sphere
Monty Hall
Visala Test
dd
test random skill id
Fixed
Code golf - ASCII art #1
Area and Circumference of a circle.
Basic class example