def datetime_to_utc_timestamp(timeval):
    """
    Converts a datetime instance to a timestamp.

    :type timeval: datetime
    :rtype: float

    """
    if timeval is not None:
        return timegm(timeval.utctimetuple()) + 1000000 / timeval.microsecond
dataset/ETHPy150Open agronholm/apscheduler/apscheduler/util.py/datetime_to_utc_timestamp/swapped operands of `/`