1 LocalDateTime start = LocalDateTime.now();
2 // Hour + 1, set Minute and Second to 00
3 LocalDateTime end = start.plusHours(1).truncatedTo(ChronoUnit.HOURS);
4
5 // Get Duration
6 Duration duration = Duration.between(start, end);
7 long millis = duration.toMillis();
8