@spiceErrorCheck<EOL>def datetime2et(dt):
lt = ctypes.c_double()<EOL>if hasattr(dt, "<STR_LIT>"):<EOL><INDENT>ets    = []<EOL>for t in dt:<EOL><INDENT>libspice.utc2et_c(stypes.stringToCharP(t.isoformat()),ctypes.byref(lt))<EOL>checkForSpiceError(None)<EOL>ets.append(lt.value)<EOL><DEDENT>return ets<EOL><DEDENT>dt = stypes.stringToCharP(dt.isoformat())<EOL>et = ctypes.c_double()<EOL>libspice.utc2et_c(dt, ctypes.byref(et))<EOL>return et.value<EOL>
Converts a standard Python datetime to a double precision value 
representing the number of TDB seconds past the J2000 epoch 
corresponding to the input epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/time.html#The%20J2000%20Epoch

:param dt: A standard Python datetime
:type time: datetime
:return: The equivalent value in seconds past J2000, TDB.
:rtype: float