def is_maximum_in_period(cube):
    """Check if cube contains maximum values during time period."""
    for cell_met in cube.cell_methods:
        if cell_met.method == 'maximum' and 'time' in cell_met.coord_names:
            return True