Returns a time span splitted in desired units given two timestamps.