transform the time unit to second