docs: public static PeriodValue createFromDuration(DateValue start, DateValue dur) {
          DateValue end = TimeUtils.add(start, dur);
          if (end instanceof TimeValue && !(start instanceof TimeValue)) {
              start = TimeUtils.dayStart(start);
          }
          return new PeriodValueImpl(start, end);
      }