def unix_ts(dtval):
epoch = datetime(<NUM_LIT>, <NUM_LIT:1>, <NUM_LIT:1>, <NUM_LIT:0>, <NUM_LIT:0>, tzinfo=tzutc())<EOL>delta = (dtval - epoch)<EOL>return delta.days * <NUM_LIT> * <NUM_LIT> + delta.seconds<EOL>
Convert datetime into a unix timestamp.
    This is the equivalent to Python 3's int(datetime.timestamp()).

    :param dt: datetime to convert