package de.stephanlindauer.criticalmaps.utils;

import android.support.annotation.NonNull;

import java.util.Date;

public class DateUtils {

    private DateUtils() {}

    public static boolean isNotLongerAgoThen(@NonNull Date timestamp, int minutes, int seconds) {
        long differenceInMs = timestamp.getTime() - new Date().getTime();
        return differenceInMs <= (minutes * 60 + seconds) * 1000;
    }
}

@@ -222,25 +222,20 @@
 ll Date 
-timestamp
+date
 , int mi
@@ -290,17 +290,18 @@
 s = 
-timestamp
+new Date()
 .get
@@ -309,26 +309,20 @@
 ime() - 
-new D
+d
 ate
-()
 .getTime

fix time always being reported as new