time -> secs in secondsToTime