/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
import java.time.format.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String input
= "2017-06-28 08:30 AM" ; DateTimeFormatter f
= DateTimeFormatter.
ofPattern( "uuuu-MM-dd hh:mm a" ,
Locale.
US ) ;LocalDateTime ldt = LocalDateTime.parse( input , f ) ;
System.
out.
println( "ldt: " + ldt
) ;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC4qIDsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgpTdHJpbmcgaW5wdXQgPSAiMjAxNy0wNi0yOCAwODozMCBBTSIgOwpEYXRlVGltZUZvcm1hdHRlciBmID0gRGF0ZVRpbWVGb3JtYXR0ZXIub2ZQYXR0ZXJuKCAidXV1dS1NTS1kZCBoaDptbSBhIiAsIExvY2FsZS5VUyApIDsKTG9jYWxEYXRlVGltZSBsZHQgPSBMb2NhbERhdGVUaW1lLnBhcnNlKCBpbnB1dCAsIGYgKSA7CgpTeXN0ZW0ub3V0LnByaW50bG4oICJsZHQ6ICIgKyBsZHQgKSA7CgoJfQp9