def datetime_to_epoch16(self, dt):
    '\n        Converts a Python datetime to a CDF Epoch16 value\n\n        Parameters\n        ==========\n        dt :  :class:`datetime.datetime`\n            date and time to convert\n\n        Returns\n        =======\n        out : list of float\n            epoch16 corresponding to dt\n\n        See Also\n        ========\n        v_datetime_to_epoch16\n        '
    if ((dt.tzinfo != None) and (dt.utcoffset() != None)):
        dt = (dt - dt.utcoffset())
    dt.replace(tzinfo=None)
    epoch16 = (ctypes.c_double * 2)((- 1.0), (- 1.0))
    if self._library.computeEPOCH16(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, int((dt.microsecond / 1000)), (dt.microsecond % 1000), 0, 0, epoch16):
        return ((- 1.0), (- 1.0))
    return (epoch16[0], epoch16[1])
Converts a Python datetime to a CDF Epoch16 value

Parameters
==========
dt :  :class:`datetime.datetime`
    date and time to convert

Returns
=======
out : list of float
    epoch16 corresponding to dt

See Also
========
v_datetime_to_epoch16
def datetime_to_epoch16(self, dt):
    '\n        Converts a Python datetime to a CDF Epoch16 value\n\n        Parameters\n        ==========\n        dt :  :class:`datetime.datetime`\n            date and time to convert\n\n        Returns\n        =======\n        out : list of float\n            epoch16 corresponding to dt\n\n        See Also\n        ========\n        v_datetime_to_epoch16\n        '
    if ((dt.tzinfo != None) and (dt.utcoffset() != None)):
        dt = (dt - dt.utcoffset())
    dt.replace(tzinfo=None)
    epoch16 = (ctypes.c_double * 2)((- 1.0), (- 1.0))
    if self._library.computeEPOCH16(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, int((dt.microsecond / 1000)), (dt.microsecond % 1000), 0, 0, epoch16):
        return ((- 1.0), (- 1.0))
    return (epoch16[0], epoch16[1])