luatz = require "luatz" x = luatz.parse.rfc_3339("2017-02-13T00:00:00.000") x.min = x.min - 14400 x:normalise() print(x) **2017-02-22T23:60:00.000**