/* 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
{
{
LocalDate ld = LocalDate.of( 1953 , 1 , 17 );
ZoneId z = ZoneId.of( "America/Montreal" );
ZonedDateTime zdt = ld.atStartOfDay( z );
Instant instant = zdt.toInstant();
long epochMillis = instant.toEpochMilli();
System.
out.
println( "ld.toString(): " + ld
); System.
out.
println( "zdt.toString(): " + zdt
); System.
out.
println( "instant.toString(): " + instant
); System.
out.
println( "epochMillis: " + epochMillis
);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLio7CmltcG9ydCBqYXZhLnRpbWUuZm9ybWF0Lio7CmltcG9ydCBqYXZhLnRpbWUudGVtcG9yYWwuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgpMb2NhbERhdGUgbGQgPSBMb2NhbERhdGUub2YoIDE5NTMgLCAxICwgMTcgKTsKWm9uZUlkIHogPSBab25lSWQub2YoICJBbWVyaWNhL01vbnRyZWFsIiApOwpab25lZERhdGVUaW1lIHpkdCA9IGxkLmF0U3RhcnRPZkRheSggeiApOwpJbnN0YW50IGluc3RhbnQgPSB6ZHQudG9JbnN0YW50KCk7CmxvbmcgZXBvY2hNaWxsaXMgPSBpbnN0YW50LnRvRXBvY2hNaWxsaSgpOwoKU3lzdGVtLm91dC5wcmludGxuKCAibGQudG9TdHJpbmcoKTogIiArIGxkICk7ClN5c3RlbS5vdXQucHJpbnRsbiggInpkdC50b1N0cmluZygpOiAiICsgemR0ICk7ClN5c3RlbS5vdXQucHJpbnRsbiggImluc3RhbnQudG9TdHJpbmcoKTogIiArIGluc3RhbnQgKTsKU3lzdGVtLm91dC5wcmludGxuKCAiZXBvY2hNaWxsaXM6ICIgKyBlcG9jaE1pbGxpcyApOwoKCX0KfQ==