Skip to content

Instantly share code, notes, and snippets.

@phcostabh
Forked from ichramm/gmtime.lua
Created February 1, 2016 17:51

Revisions

  1. Juan Ramirez created this gist May 29, 2013.
    7 changes: 7 additions & 0 deletions gmtime.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@

    --[[!
    -- @return The current time in UTC
    --]]
    function gmtime()
    return os.time(os.date("!*t"));
    end