code: def _convert_times(times, time_format, meas_date=None, first_time=0):
      """Convert vector of time in seconds to ms, datetime, or timedelta."""
      # private function; pandas already checked in calling function
      from pandas import to_timedelta
  
      if time_format == "ms":
          times = np.round(times * 1e3).astype(np.int64)
      elif time_format == "timedelta":
          times = to_timedelta(times, unit="s")
      elif time_format == "datetime":
          times = to_timedelta(times + first_time, unit="s") + meas_date
      return times
  
file_path: mne-python/mne/utils/dataframe.py
imports: from inspect import signature
  import numpy
  from ..defaults import _handle_default
  from ._logging import logger, verbose
label_desc: Use image node_id 3 for calling a global function with example usage: _convert_times(times, time_format, meas_date, first_time) and returns: times