def epoch(t):
    if not hasattr(t, 'tzinfo'):
        return
    return int(time.mktime(_append_tz(t).timetuple()))
Date/Time converted to seconds since epoch
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/epoch