fixed time_to_dec