Manipulation of Dates and Periods in LuaJIT