Convert minTime() to local function and C.
Convert addtime() to local function, handle NULL tp. Add TODO to minTime().
Make local functions and the command string static.