Fix formatting of millisecond periods
Tighten up vectorized type for conversion functions