code: def intervals(start, end, interval):
      
      interval = _seconds_or_timedelta(interval)
      current_timestamp = start
      while current_timestamp.epoch < end.epoch:
          yield current_timestamp
  
          current_timestamp = current_timestamp.add(
              seconds=interval.total_seconds()
          )
docs: Yields MayaDT objects between the start and end MayaDTs given,
      at a given interval (seconds or timedelta).