Converts a time from an initial unit to a final unit.