from datetime import datetime
import pytz


def utc_to_unix(t):
    """ UTC Y-M-D -> UTC unix time (ignore float second point)
    t = "2000-01-01T00:00:00.111" """
    t = t.split('.')[0]
    dt = datetime.strptime(t, '%Y-%m-%dT%H:%M:%S')
    tz = pytz.timezone('UTC')
    dt = tz.localize(dt)
    unix_time = int(dt.timestamp())
    return unix_time