class="java"> LocalDate today = LocalDate.now(); System.out.println(today.toString()); String time=today.toString()+" 23:59:59"; DateTimeFormatter ftf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); LocalDateTime parse = LocalDateTime.parse(time, ftf); parse= parse.plusHours(72); long todytime= LocalDateTime.from(parse).atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); System.out.println(todytime/1000);