-
-
Save phcostabh/13ec8ce6774c2d479b10 to your computer and use it in GitHub Desktop.
Lua function that returns the current time in UTC.
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
--[[! | |
-- @return The current time in UTC | |
--]] | |
function gmtime() | |
return os.time(os.date("!*t")); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment