]> git.madduck.net Git - etc/awesome.git/blobdiff - examples/date_arithmetic.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

{luatz,doc}/gettime: Add Openresty's ngx.now as a source
[etc/awesome.git] / examples / date_arithmetic.lua
index 3b1126d57b2095d5fbf364509cf470e8091e7863..d5bd92bcfd7723fd749688c60dd1b8fa37a76bd2 100644 (file)
@@ -2,7 +2,7 @@ local luatz = require "luatz"
 
 -- We do this a few times ==> Convert a timestamp to timetable and normalise
 local function ts2tt ( ts )
 
 -- We do this a few times ==> Convert a timestamp to timetable and normalise
 local function ts2tt ( ts )
-       return luatz.timetable.new_from_timestamp ( ts ):normalise ( )
+       return luatz.timetable.new_from_timestamp ( ts )
 end
 
 -- Get the current time in UTC
 end
 
 -- Get the current time in UTC