Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instant now = Instant.now();
- Duration diff = Duration.between(
- LocalTime.MIN,
- LocalTime.parse("02:00:00")
- );
- Instant res = now.plus(diff);
- System.out.println("res = " + Timestamp.from(res));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement