public Interval withStartDateTime ( LocalDateTime dateTime ) { requireNonNull ( dateTime ) ; return new Interval ( dateTime . toLocalDate ( ) , dateTime . toLocalTime ( ) , endDate , endTime ) ; }
Returns a new interval based on this interval but with a different start date and time .