Java tutorial
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); // tells whether date/time interpretation is lenient. boolean b = cal.isLenient(); System.out.println(b); } }