Extract time unit from a vector

time_unit(x)

Arguments

x

An interval.