diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-17 13:09:05 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-17 13:09:05 +1300 |
commit | da76f9195ec6fbf0e6a0a6419eec908b91f844b7 (patch) | |
tree | ad5617253f8c2db48d6111339bba585cb18ea3d0 /src/org/traccar/helper/DateBuilder.java | |
parent | 8fcd8010074624277537375edc3e473096020ed3 (diff) | |
download | trackermap-server-da76f9195ec6fbf0e6a0a6419eec908b91f844b7.tar.gz trackermap-server-da76f9195ec6fbf0e6a0a6419eec908b91f844b7.tar.bz2 trackermap-server-da76f9195ec6fbf0e6a0a6419eec908b91f844b7.zip |
Refactor GPS103 protocol decoder
Diffstat (limited to 'src/org/traccar/helper/DateBuilder.java')
-rw-r--r-- | src/org/traccar/helper/DateBuilder.java | 5 |
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; |