Javatpoint Logo
Javatpoint Logo

Java Calendar isLenient() Method

The isLenient() method of Calendar class returns the Boolean value true if the interpretation mode of this calendar is lenient; false otherwise.

Syntax

Parameter

No parameter is passed.

Returns

Returns Boolean value.

Throws

Does not throw Exception.

Example 1

Test it Now

Output:

Current Date and Time is Mon Aug 13 21:24:01 PDT 2018
Interpretation is lenient: true
NOW Date and Time is Mon Nov 11 21:24:01 PST 1996
Interpretation is lenient: true

Example 2

Test it Now

Output:

Date and Time is Mon Aug 13 21:41:24 PDT 2018
 Is lenient: true




Help Others, Please Share

facebook twitter pinterest