Skip to content

Instantly share code, notes, and snippets.

@SnowflakeTQ
Forked from ichramm/gmtime.lua
Created January 7, 2017 05:19
Show Gist options
  • Save SnowflakeTQ/aecbe725e11a4a62d93d35a88871b9c8 to your computer and use it in GitHub Desktop.
Save SnowflakeTQ/aecbe725e11a4a62d93d35a88871b9c8 to your computer and use it in GitHub Desktop.
Lua function that returns the current time in UTC.
--[[!
-- @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