aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/DateBuilder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/DateBuilder.java')
-rw-r--r--src/org/traccar/helper/DateBuilder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/helper/DateBuilder.java b/src/org/traccar/helper/DateBuilder.java
index 9a75d90fc..5d2ee8e0a 100644
--- a/src/org/traccar/helper/DateBuilder.java
+++ b/src/org/traccar/helper/DateBuilder.java
@@ -84,6 +84,11 @@ public class DateBuilder {
return this;
}
+ public DateBuilder addMinute(int minute) {
+ calendar.add(Calendar.MINUTE, minute);
+ return this;
+ }
+
public DateBuilder setSecond(int second) {
calendar.set(Calendar.SECOND, second);
return this;