aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-03 08:09:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-03 08:09:22 +1300
commit118c650bd2fd55e8e61349f9173ce12900dcf4ee (patch)
treea54de26781b5e24c52d1ef4a46059a36d8bc6676 /src/org/traccar/helper
parent5fa04496f7f752e6c7fe339b712875ae6b860d3d (diff)
downloadtrackermap-server-118c650bd2fd55e8e61349f9173ce12900dcf4ee.tar.gz
trackermap-server-118c650bd2fd55e8e61349f9173ce12900dcf4ee.tar.bz2
trackermap-server-118c650bd2fd55e8e61349f9173ce12900dcf4ee.zip
Start Smokey protocol implementation
Diffstat (limited to 'src/org/traccar/helper')
-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 c52210326..bf4432efc 100644
--- a/src/org/traccar/helper/DateBuilder.java
+++ b/src/org/traccar/helper/DateBuilder.java
@@ -92,6 +92,11 @@ public class DateBuilder {
return this;
}
+ public DateBuilder addSeconds(long seconds) {
+ calendar.setTimeInMillis(calendar.getTimeInMillis() + seconds * 1000);
+ return this;
+ }
+
public DateBuilder setMillis(int millis) {
calendar.set(Calendar.MILLISECOND, millis);
return this;