class_docstr: Class for time operations on epochs/evoked-like MNE objects.
class_docstr_tok: ["Class","for","time","operations","on","epochs\/evoked-like","MNE","objects","."]
docstr: Shift time scale in epoched or evoked data.
  
  Parameters
  ----------
  tshift : float
      The (absolute or relative) time shift in seconds. If ``relative``
      is True, positive tshift increases the time value associated with
      each sample, while negative tshift decreases it.
  relative : bool
      If True, increase or decrease time values by ``tshift`` seconds.
      Otherwise, shift the time values such that the time of the first
      sample equals ``tshift``.
  
  Returns
  -------
  epochs : MNE-object
      The modified instance.
  
  Notes
  -----
  This method allows you to shift the *time* values associated with each
  data sample by an arbitrary amount. It does *not* resample the signal
  or change the *data* values in any way.
docstr_tok: ["Shift","time","scale","in","epoched","or","evoked","data",".","Parameters","--","--","--","--","--","tshift",":","float","The","(","absolute","or","relative",")","time","shift","in","seconds",".","If","``","relative","``","is","True",",","positive","tshift","increases","the","time","value","associated","with","each","sample",",","while","negative","tshift","decreases","it",".","relative",":","bool","If","True",",","increase","or","decrease","time","values","by","``","tshift","``","seconds",".","Otherwise",",","shift","the","time","values","such","that","the","time","of","the","first","sample","equals","``","tshift","``",".","Returns","--","--","--","-","epochs",":","MNE-object","The","modified","instance",".","Notes","--","--","-","This","method","allows","you","to","shift","the","*","time","*","values","associated","with","each","data","sample","by","an","arbitrary","amount",".","It","does","*","not","*","resample","the","signal","or","change","the","*","data","*","values","in","any","way","."]
code: def shift_time(self, tshift, relative=True):
      """Shift time scale in epoched or evoked data.
  
      Parameters
      ----------
      tshift : float
          The (absolute or relative) time shift in seconds. If ``relative``
          is True, positive tshift increases the time value associated with
          each sample, while negative tshift decreases it.
      relative : bool
          If True, increase or decrease time values by ``tshift`` seconds.
          Otherwise, shift the time values such that the time of the first
          sample equals ``tshift``.
  
      Returns
      -------
      epochs : MNE-object
          The modified instance.
  
      Notes
      -----
      This method allows you to shift the *time* values associated with each
      data sample by an arbitrary amount. It does *not* resample the signal
      or change the *data* values in any way.
      """
      _check_preload(self, "shift_time")
      start = tshift + (self.times[0] if relative else 0.0)
      new_times = (
          start + np.arange(len(self.times)) / self.info["sfreq"]
      )
      self._set_times(new_times)
      self._update_first_last()
      return self
  
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 5 for calling the ExtendedTimeMixin obj's underlying member method code with example usage: obj.shift_time(tshift, relative) and returns: self