import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
public class Main {
public static void main
(String[] args
) { String strDate
= "2021-11-25"; String strDateTime
= strDate
+ "T" + strTime
; LocalDateTime ldt = LocalDateTime.parse(strDateTime);
Instant instant = ldt.atZone(ZoneId.systemDefault()).toInstant();
}
}
aW1wb3J0IGphdmEudGltZS5JbnN0YW50OwppbXBvcnQgamF2YS50aW1lLkxvY2FsRGF0ZVRpbWU7CmltcG9ydCBqYXZhLnRpbWUuWm9uZUlkOwoKcHVibGljIGNsYXNzIE1haW4gewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoJCVN0cmluZyBzdHJEYXRlID0gIjIwMjEtMTEtMjUiOwoJCVN0cmluZyBzdHJUaW1lID0gIjE1OjIwIjsKCQlTdHJpbmcgc3RyRGF0ZVRpbWUgPSBzdHJEYXRlICsgIlQiICsgc3RyVGltZTsKCQlMb2NhbERhdGVUaW1lIGxkdCA9IExvY2FsRGF0ZVRpbWUucGFyc2Uoc3RyRGF0ZVRpbWUpOwoJCUluc3RhbnQgaW5zdGFudCA9IGxkdC5hdFpvbmUoWm9uZUlkLnN5c3RlbURlZmF1bHQoKSkudG9JbnN0YW50KCk7CgkJU3lzdGVtLm91dC5wcmludGxuKGluc3RhbnQpOwoJfQp9