Skip to content

Instantly share code, notes, and snippets.

@phcostabh
Forked from ichramm/gmtime.lua
Created February 1, 2016 17:51
Show Gist options
  • Save phcostabh/13ec8ce6774c2d479b10 to your computer and use it in GitHub Desktop.
Save phcostabh/13ec8ce6774c2d479b10 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