def utc_millesecs_from_epoch(for_datetime=None):
    if not for_datetime:
        for_datetime = datetime.datetime.now()
    return calendar.timegm(for_datetime.utctimetuple()) * 1000
Returns millesconds from the Unix epoch in UTC.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/utc_millesecs_from_epoch