import datetime


def unix_ts(*args):
    """Get unix timestamp for date. Accepts same args as Python's
    datetime.datetime, viz
    year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]]"""
    return int(datetime.datetime(*args).strftime("%s"))