def objects_to_datetime64ns(data, dayfirst, yearfirst,<EOL>utc=False, errors="<STR_LIT>",<EOL>require_iso8601=False, allow_object=False):
assert errors in ["<STR_LIT>", "<STR_LIT:ignore>", "<STR_LIT>"]<EOL>data = np.array(data, copy=False, dtype=np.object_)<EOL>try:<EOL><INDENT>result, tz_parsed = tslib.array_to_datetime(<EOL>data,<EOL>errors=errors,<EOL>utc=utc,<EOL>dayfirst=dayfirst,<EOL>yearfirst=yearfirst,<EOL>require_iso8601=require_iso8601<EOL>)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>try:<EOL><INDENT>values, tz_parsed = conversion.datetime_to_datetime64(data)<EOL>return values.view('<STR_LIT>'), tz_parsed<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>raise e<EOL><DEDENT><DEDENT>if tz_parsed is not None:<EOL><INDENT>return result.view('<STR_LIT>'), tz_parsed<EOL><DEDENT>elif is_datetime64_dtype(result):<EOL><INDENT>return result, tz_parsed<EOL><DEDENT>elif is_object_dtype(result):<EOL><INDENT>if allow_object:<EOL><INDENT>return result, tz_parsed<EOL><DEDENT>raise TypeError(result)<EOL><DEDENT>else:  <EOL><INDENT>raise TypeError(result)<EOL><DEDENT>
Convert data to array of timestamps.

Parameters
----------
data : np.ndarray[object]
dayfirst : bool
yearfirst : bool
utc : bool, default False
    Whether to convert timezone-aware timestamps to UTC
errors : {'raise', 'ignore', 'coerce'}
allow_object : bool
    Whether to return an object-dtype ndarray instead of raising if the
    data contains more than one timezone.

Returns
-------
result : ndarray
    np.int64 dtype if returned values represent UTC timestamps
    np.datetime64[ns] if returned values represent wall times
    object if mixed timezones
inferred_tz : tzinfo or None

Raises
------
ValueError : if data cannot be converted to datetimes