def is_time_mean(cube):
    """Check whether a cube was averaged over time."""
    for cell_method in cube.cell_methods:
        if cell_method.method == 'mean' and 'time' in cell_method.coord_names:
            return True