X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FTimestamp.java;fp=tim%2Fprune%2Fdata%2FTimestamp.java;h=d5e065d4371d197c177a09f514498f93f71b6109;hp=cfddffe1e5fb1b146d82caab60318b76eb51d97b;hb=ff33ebba6b7c62834f6dae16ce33eb2c710b160e;hpb=0a2480df5845e2d7190dfdec9b2653b1609e853d diff --git a/tim/prune/data/Timestamp.java b/tim/prune/data/Timestamp.java index cfddffe..d5e065d 100644 --- a/tim/prune/data/Timestamp.java +++ b/tim/prune/data/Timestamp.java @@ -362,11 +362,11 @@ public class Timestamp } /** * @param inOther other Timestamp - * @return true if this one is at least a second after the other + * @return true if this one is at least a millisecond after the other */ public boolean isAfter(Timestamp inOther) { - return getSecondsSince(inOther) > 0L; + return getMillisecondsSince(inOther) > 0L; } /** @@ -391,11 +391,11 @@ public class Timestamp /** * @param inOther other timestamp to compare - * @return true if they're equal to the nearest second + * @return true if they're equal to the nearest millisecond */ public boolean isEqual(Timestamp inOther) { - return getSecondsSince(inOther) == 0L; + return inOther != null && _milliseconds == inOther._milliseconds; } /** @@ -404,7 +404,7 @@ public class Timestamp */ public boolean isBefore(Timestamp inOther) { - return getSecondsSince(inOther) < 0L; + return getMillisecondsSince(inOther) < 0L; } /**