In Java, plusMinutes(minutes) returns a new LocalDateTime that is the given number of minutes later than the original. The seconds and nanoseconds stay the same.
LocalDateTime is immutable, so the original object never changes. Always keep the result: dt = dt.plusMinutes(1);. When the minutes pass 60, the hour changes, and when they pass midnight, the date changes.
An instance method of java.time.LocalDateTime (since Java 8): call it on a LocalDateTime object. Add import java.time.LocalDateTime; at the top of your file.
Syntax
Call it on a LocalDateTime and pass the number of minutes. A negative number goes the other way.
90 minutes is 1 hour 30 minutes. 10:30 plus 90 minutes is 12:00, so the hour and minute both change.
23:50 plus 20 minutes. The clock passes midnight, so the time is 00:10.
The date moves on. The second result is on 16 March, not the 15th.
Example 3 — Print a Bus Timetable
A bus leaves every 20 minutes starting at 08:00. Use a loop to print the first four departures.
Java
import java.time.LocalDateTime;
public class LdtPlusMinutesBus {
public static void main(String[] args) {
LocalDateTime bus = LocalDateTime.of(2026, 3, 15, 8, 0);
for (int i = 1; i <= 4; i++) {
System.out.println("bus " + i + ": " + bus.toLocalTime());
bus = bus.plusMinutes(20);
}
}
}
Output
bus 1: 08:00
bus 2: 08:20
bus 3: 08:40
bus 4: 09:00
How It Works
The first bus. It leaves at 08:00.
Print, then move on. Each round prints the time, then plusMinutes(20) prepares the next departure.
Only the time is shown.toLocalTime() drops the date, so the lines read 08:00, 08:20, 08:40, and 09:00.
The hour changes by itself. After 08:40, the next departure is 09:00.
Frequently Asked Questions
Call dt.plusMinutes(n). It returns a new LocalDateTime, so store it: dt = dt.plusMinutes(n).
No. LocalDateTime is immutable, so plusMinutes() returns a new object and leaves the original as it was.
Yes. A negative number moves the other way, so dt.plusMinutes(-n) gives the same result as dt.minusMinutes(n).
Use LocalDateTime.now().plusMinutes(30).
Use plusMinutes(90), or call plusHours(1).plusMinutes(30). Both give the same result.