time_od is `int` if `time` is int array.

time_od needs to be float, or we get
`ValueError: cannot convert float NaN to integer`