Updated TimestampUtils#getMinutesFromTimestamp, allowing the returned value be higher than 60

This commit is contained in:
CrushedPixel
2015-07-16 22:57:59 +02:00
parent 238acf2eca
commit e0dec32b1d

View File

@@ -3,7 +3,7 @@ package eu.crushedpixel.replaymod.utils;
public class TimestampUtils {
public static int getMinutesFromTimestamp(long timestamp) {
return (int)((timestamp / (1000*60)) % 60);
return (int)(timestamp / (1000*60));
}
public static int getSecondsFromTimestamp(long timestamp) {