aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 17:33:12 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 17:33:12 +1300
commit912e63f296c6e4b7ec6e56768b55904e461dd07c (patch)
tree785c651b3a7ba6cf2a47b8ba15c4e1fe7b69cb74 /src/org/traccar/helper
parent08df8bea6809065f1d1e7d1298e2634d7427894b (diff)
downloadtraccar-server-912e63f296c6e4b7ec6e56768b55904e461dd07c.tar.gz
traccar-server-912e63f296c6e4b7ec6e56768b55904e461dd07c.tar.bz2
traccar-server-912e63f296c6e4b7ec6e56768b55904e461dd07c.zip
Replace Calendar with DateBuilder
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/DateBuilder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/helper/DateBuilder.java b/src/org/traccar/helper/DateBuilder.java
index 0ad7a4d7b..c52210326 100644
--- a/src/org/traccar/helper/DateBuilder.java
+++ b/src/org/traccar/helper/DateBuilder.java
@@ -106,6 +106,10 @@ public class DateBuilder {
return setHour(hour).setMinute(minute).setSecond(second);
}
+ public DateBuilder setTimeReverse(int second, int minute, int hour) {
+ return setHour(hour).setMinute(minute).setSecond(second);
+ }
+
public DateBuilder setTime(int hour, int minute, int second, int millis) {
return setHour(hour).setMinute(minute).setSecond(second).setMillis(millis);
}