import time


def datetime_to_ms(dt):
    """
    Convert an unaware datetime object to milliseconds.
    This datetime should be the time you would expect to see
    on the client side. The SMC will do the timestamp conversion
    based on the query timezone.

    :return: value representing the datetime in milliseconds
    :rtype: int
    """
    return int(time.mktime(dt.timetuple()) * 1000)