convert duration of seconds into system time.