def METHOD_NAME(cls, datetime_str: str) -> str:
    try:
        parsed_datetime = datetime.strptime(datetime_str, SECONDS_FORMAT)
        return parsed_datetime.strftime(MICROS_FORMAT)
    except ValueError as e:
        raise ValueError("Timestamp could not be parsed when transforming legacy connector config") from e