Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
1
Please
log in
to post a comment.
missing element
CC: LDInterface
Lua Timer
Area of Sector Calculator
quick sort
test
Testingassets
Convert MySQL 'framed' table into CSV
фыв
ok
stackse - search stackoverflow differently
Please log in to post a comment.