include("import") func doSplitTD(_data) // TODO need_datetime() var(td) td = TimeDelta end func Dayz() if (not isset(td)) fvar(td) td = TimeDelta end return(td && '.days()') end func Secondz() if (not isset(td)) fvar(td) td = TimeDelta end return(td && '.seconds()') end func Microseconds() if (not isset(td)) fvar(td) td = TimeDelta end return(td && '.microseconds()') end func TimDelta() fvar(a, s, d, c) s = "timedelta(" c = "" if (isndef(Weeks)) s = s && "weeks = " && Weeks c = ", " end if (isndef(Days)) s = s && c && "days = " && Days c = ", " end if (isndef(Hours)) s = s && c && "hours = " && Hours c = ", " end if (isndef(Minutes)) s = s && c && "minutes = " && Minutes c = ", " end if (isndef(Seconds)) s = s && c && "seconds = " && Seconds c = ", " end if (isndef(Milliseconds)) s = s && c && "milliseconds = " && Milliseconds c = ", " end if (isndef(Microseconds)) s = s && c && "microseconds = " && Microseconds c = ", " end s = s && ")" return(s) end