ChronoUnit.IsSupportedBy(ITemporal) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.