Calendar.Lenient Property
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.
Tell whether date/time interpretation is to be lenient. -or- Specify whether or not date/time interpretation is to be lenient.
public virtual bool Lenient { [Android.Runtime.Register("isLenient", "()Z", "GetIsLenientHandler", ApiSince=24)] get; [Android.Runtime.Register("setLenient", "(Z)V", "GetSetLenient_ZHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("isLenient", "()Z", "GetIsLenientHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setLenient", "(Z)V", "GetSetLenient_ZHandler", ApiSince=24)>]
member this.Lenient : bool with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Tell whether date/time interpretation is to be lenient.
Java documentation for android.icu.util.Calendar.isLenient()
.
Property setter documentation:
Specify whether or not date/time interpretation is to be lenient. With lenient interpretation, a date such as "February 942, 1996" will be treated as being equivalent to the 941st day after February 1, 1996. With strict interpretation, such dates will cause an exception to be thrown.
Java documentation for android.icu.util.Calendar.setLenient(boolean)
.
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.