OffsetTime.adjustInto

Adjusts the specified temporal object to have the same offset and time as this object. !(p) This returns a temporal object of the same observable type as the input with the offset and time changed to be the same as this. !(p) The adjustment is equivalent to using {@link Temporal#_with(TemporalField, long)} twice, passing {@link ChronoField#NANO_OF_DAY} and {@link ChronoField#OFFSET_SECONDS} as the fields. !(p) In most cases, it is clearer to reverse the calling pattern by using {@link Temporal#_with(TemporalAdjuster)}: !(pre) // these two lines are equivalent, but the second approach is recommended temporal = thisOffsetTime.adjustInto(temporal); temporal = temporal._with(thisOffsetTime); </pre> !(p) This instance is immutable and unaffected by this method call.

@param temporal the target object to be adjusted, not null @return the adjusted object, not null @throws DateTimeException if unable to make the adjustment @throws ArithmeticException if numeric overflow occurs

class OffsetTime
override
adjustInto

Meta