Created
March 26, 2012 03:47
-
-
Save uhziel/2202779 to your computer and use it in GitHub Desktop.
convert time_t to calendar time in Lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function time_t2calendartime(time) | |
return os.date("%Y-%m-%d %H:%M:%S", time) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment