def to_unix_time(dtime):
    if getattr(dtime, 'tzinfo', None) is not None:
        dtime = dtime.astimezone(pytz.UTC)
    unix_time = calendar.timegm(dtime.timetuple())
    return unix_time
Open connection to VXI-11 instrument
dataset/ETHPy150Open pimutils/khal/khal/khalendar/aux.py/to_unix_time--crossover with--dataset/ETHPy150Open LabPy/lantz/lantz/drivers/legacy/vxi11.py/Vxi11Driver.initialize