import calendar


def get_month_dispatch_intervals(year, month):
    """Get all dispatch interval IDs for a given month"""

    days = range(1, calendar.monthrange(year, month)[1] + 1)
    intervals = range(1, 289)

    return [f'{year}{month:02}{d:02}{i:03}' for d in days for i in intervals]