import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
public class Main {
public static void main
(String[] args
) { String strDate
= "2021-11-25"; ZonedDateTime zdt = ZonedDateTime.of(LocalDate.parse(strDate), LocalTime.parse(strTime),
ZoneId.systemDefault());
// Alternatively
// ZonedDateTime zdt = ZonedDateTime.of(LocalDateTime.of(LocalDate.parse(strDate), LocalTime.parse(strTime)),
// ZoneId.systemDefault());
Instant instant = zdt.toInstant();
}
}
aW1wb3J0IGphdmEudGltZS5JbnN0YW50OwppbXBvcnQgamF2YS50aW1lLkxvY2FsRGF0ZTsKaW1wb3J0IGphdmEudGltZS5Mb2NhbFRpbWU7CmltcG9ydCBqYXZhLnRpbWUuWm9uZUlkOwppbXBvcnQgamF2YS50aW1lLlpvbmVkRGF0ZVRpbWU7CgpwdWJsaWMgY2xhc3MgTWFpbiB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CgkJU3RyaW5nIHN0ckRhdGUgPSAiMjAyMS0xMS0yNSI7CgkJU3RyaW5nIHN0clRpbWUgPSAiMTU6MjAiOwoJCVpvbmVkRGF0ZVRpbWUgemR0ID0gWm9uZWREYXRlVGltZS5vZihMb2NhbERhdGUucGFyc2Uoc3RyRGF0ZSksIExvY2FsVGltZS5wYXJzZShzdHJUaW1lKSwKCQkJCQkJCQkJCQkJWm9uZUlkLnN5c3RlbURlZmF1bHQoKSk7CgkJLy8gQWx0ZXJuYXRpdmVseQoJCS8vIFpvbmVkRGF0ZVRpbWUgemR0ID0gWm9uZWREYXRlVGltZS5vZihMb2NhbERhdGVUaW1lLm9mKExvY2FsRGF0ZS5wYXJzZShzdHJEYXRlKSwgTG9jYWxUaW1lLnBhcnNlKHN0clRpbWUpKSwKCQkvLwkJCQkJCQkJCQkJWm9uZUlkLnN5c3RlbURlZmF1bHQoKSk7CgkJCgkJSW5zdGFudCBpbnN0YW50ID0gemR0LnRvSW5zdGFudCgpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihpbnN0YW50KTsKCX0KfQ==