

def timestamp(date, utc=False):
    if isinstance(date, basestring):
        date = parse(date, utc=utc)
    return int(time.mktime(date.timetuple()))

dataset/ETHPy150Open debrouwere/facebook-insights/facebookinsights/utils/date.py timestamp/original