import calendar


def utc_datetime_to_ts(dt):
    """
    convert datetime instance to timestamp in second

    Args:
        dt(datetime): datetime instance

    Returns:
        int: timestamp in second.
    """
    return int(calendar.timegm(dt.timetuple()))