Language

ChronoUnit.IsSupportedBy(ITemporal) Method

Definition

Checks whether the specified date or time object supports this unit.

[Android.Runtime.Register("isSupportedBy", "(Ljava/time/temporal/Temporal;)Z", "", ApiSince=26)]
public bool IsSupportedBy(Java.Time.Temporal.ITemporal? temporal);
[<Android.Runtime.Register("isSupportedBy", "(Ljava/time/temporal/Temporal;)Z", "", ApiSince=26)>]
abstract member IsSupportedBy : Java.Time.Temporal.ITemporal -> bool
override this.IsSupportedBy : Java.Time.Temporal.ITemporal -> bool

Parameters

temporal
ITemporal

The date or time object to check. Must not be null.

Returns

true if the object supports this unit; otherwise, false.

Implements

Attributes

Remarks

Calls IsSupported(ITemporalUnit) on temporal with this unit. The object determines which units it supports.

Source for the unit-support check.

Applies to