code: def _maybe_apply_time_shift(da, time_offset=None, **DataAttrs):
          
          if time_offset is not None:
              time = times.apply_time_offset(da[TIME_STR], **time_offset)
              da[TIME_STR] = time
          return da
docs: Apply specified time shift to DataArray