from datetime import datetime


def ms_since_epoch(dt):
    """
    Get the milliseconds since epoch until specific a date and time.

    Args:
        dt (datetime): date and time limit.

    Returns:
        int: number of milliseconds.
    """
    return (dt - datetime(1970, 1, 1)).total_seconds() * 1000