[Time] Fix TimeDuration length

TimeDuration length is long long type, we now add a Math.floor() on the
lenght to trunkate it.