Skip to content

Instantly share code, notes, and snippets.

@ichramm
Created May 29, 2013 22:17
Show Gist options
  • Save ichramm/5674287 to your computer and use it in GitHub Desktop.
Save ichramm/5674287 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
@hylexus
Copy link

hylexus commented Apr 23, 2018

is there any way to get time from redis server (version <= 3.2) with lua script ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment