class_docstr: Class for time operations on any MNE object that has a time axis.
class_docstr_tok: ["Class","for","time","operations","on","any","MNE","object","that","has","a","time","axis","."]
docstr: Set self._times_readonly (and make it read only).
docstr_tok: ["Set","self._times_readonly","(","and","make","it","read","only",")","."]
code: def _set_times(self, times):
      """Set self._times_readonly (and make it read only)."""
      # naming used to indicate that it shouldn't be
      # changed directly, but rather via this method
      self._times_readonly = times.copy()
      self._times_readonly.flags["WRITEABLE"] = False
  
imports: import json
  import logging
  from collections import OrderedDict
  from copy import deepcopy
  import numpy
  from ._logging import verbose, warn
  from .check import _check_pandas_installed, _check_preload, _validate_type
  from .numerics import _time_mask, object_hash, object_size
label_desc: Use image node_id 4 for calling the TimeMixin obj's underlying member method code with example usage: obj._set_times(times) without return types