/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String input
= "2016-01-23 12:34" ; String inputModified
= input.
replace( " " ,
"T" );
LocalDateTime ldt = LocalDateTime.parse( inputModified );
LocalDateTime ldtLater = ldt.plusMinutes( 10 );
System.
out.
println( "ldt: " + ldt
); System.
out.
println( "ldtLater: " + ldtLater
);
ZonedDateTime zdt = LocalDateTime.parse( "2016-01-23 12:34".replace( " " , "T" ) ).atZone( ZoneId.of( "Asia/Karachi" ) ).plusMinutes( 10 ) ;
System.
out.
println( "zdt: " + zdt
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRpbWUuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CiAgICAgICAgU3RyaW5nIGlucHV0ID0gIjIwMTYtMDEtMjMgMTI6MzQiIDsKICAgICAgICBTdHJpbmcgaW5wdXRNb2RpZmllZCA9IGlucHV0LnJlcGxhY2UoICIgIiAsICJUIiApOwoKICAgICAgICBMb2NhbERhdGVUaW1lIGxkdCA9IExvY2FsRGF0ZVRpbWUucGFyc2UoIGlucHV0TW9kaWZpZWQgKTsKCiAgICAgICAgTG9jYWxEYXRlVGltZSBsZHRMYXRlciA9IGxkdC5wbHVzTWludXRlcyggMTAgKTsKCgkJU3lzdGVtLm91dC5wcmludGxuKCAibGR0OiAiICsgbGR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