

def _splitted_utc_datetime_to_timestamp(dt, ms):
    if (dt is not None):
        return (calendar.timegm(dt.utctimetuple()) + (ms / 1000000.0))
    else:
        return None

dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/db/model.py _splitted_utc_datetime_to_timestamp/original