Reputation:
I want to modify LocalDateTime.now()
by adding a certain amount of minutes to it. How do I do that?
Upvotes: 49
Views: 70250
Reputation: 3057
If you are using java 8 then you can still use the same syntax
LocalDateTime fiveMinutesLater = LocalDateTime.now().plusMinutes(5)
Upvotes: 106