TemporalUnit.isSupportedBy

Checks if this unit is supported by the specified temporal object. !(p) This checks that the implementing date-time can add/subtract this unit. This can be used to avoid throwing an exception. !(p) This implementation derives the value using {@link Temporal#plus(long, TemporalUnit)}.

@param temporal the temporal object to check, not null @return true if the unit is supported

class TemporalUnit
bool
isSupportedBy

Meta