(date_string)
date string to seconds since the unix epoch
date string to seconds since the unix epoch
date string to seconds since the unix epoch
def parsedate(date_string):
    """date string to seconds since the unix epoch"""
    try:
        date = dateutil.parser.parse(date_string)
        unix_time = int(mktime(date.timetuple()))
        click.echo(unix_time)
    except Exception as e:
        # Should really log an error here
        click.echo(0)
def parsedate ( date_string ) : try : date = dateutil . parser . parse ( date_string ) unix_time = int ( mktime ( date . timetuple ( ) ) ) click . echo ( unix_time ) except Exception as e : # Should really log an error here click . echo ( 0 )