ChronoField.CheckValidValue(Int64) 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 that the specified value is valid for this field.
[Android.Runtime.Register("checkValidValue", "(J)J", "", ApiSince=26)]
public long CheckValidValue (long value);
[<Android.Runtime.Register("checkValidValue", "(J)J", "", ApiSince=26)>]
member this.CheckValidValue : int64 -> int64
Parameters
- value
- Int64
the value to check
Returns
the value that was passed in
- Attributes
Remarks
Checks that the specified value is valid for this field.
This validates that the value is within the outer range of valid values returned by #range()
.
This method checks against the range of the field in the ISO-8601 calendar system. This range may be incorrect for other calendar systems. Use Chronology#range(ChronoField)
to access the correct range for a different calendar system.
Java documentation for java.time.temporal.ChronoField.checkValidValue(long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.