字符串转LocalTime再转Instant
LocalTime a= LocalTime.parse("20:13:01");
// LocalTime a= LocalTime.now();
System.out.println(a);
System.out.println(LocalDate.now().atTime(a).atZone(ZoneId.systemDefault()).toInstant());
LocalTime a= LocalTime.parse("20:13:01");
// LocalTime a= LocalTime.now();
System.out.println(a);
System.out.println(LocalDate.now().atTime(a).atZone(ZoneId.systemDefault()).toInstant());