[Time] Fix TimeDuration length

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