Time related functions

From LuaFAR 3