convertTime function

Convert numeric time vector based on the provided units.