/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
import java.time.format.* ;
import java.time.temporal.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String startInput
= "2014/09/12 00:00"; String stopInput
= "2014/09/13 00:00";
DateTimeFormatter f = DateTimeFormatter.ofPattern( "uuuu/MM/dd HH:mm" );
LocalDateTime start = LocalDateTime.parse( startInput , f ) ;
LocalDateTime stop = LocalDateTime.parse( stopInput , f ) ;
boolean isBefore = start.isBefore( stop ) ;
System.
out.
println( start
+ " is before " + stop
+ " = " + isBefore
);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC4qIDsKaW1wb3J0IGphdmEudGltZS50ZW1wb3JhbC4qIDsKCgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoKCQlTdHJpbmcgc3RhcnRJbnB1dCA9ICIyMDE0LzA5LzEyIDAwOjAwIjsKCQlTdHJpbmcgc3RvcElucHV0ID0gIjIwMTQvMDkvMTMgMDA6MDAiOwoJCQoJCURhdGVUaW1lRm9ybWF0dGVyIGYgPSBEYXRlVGltZUZvcm1hdHRlci5vZlBhdHRlcm4oICJ1dXV1L01NL2RkIEhIOm1tIiApOwoJCQoJCUxvY2FsRGF0ZVRpbWUgc3RhcnQgPSBMb2NhbERhdGVUaW1lLnBhcnN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