Skip to content

Commit

Permalink
fix 时间的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amin168 committed Jun 2, 2017
1 parent 89ebe20 commit de4972f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xframe/src/main/java/com/youth/xframe/utils/XDateUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.youth.xframe.utils;

import android.annotation.SuppressLint;

import com.youth.xframe.entity.DateDifference;

import java.text.ParseException;
Expand Down Expand Up @@ -308,7 +306,7 @@ public static DateDifference getTwoDataDifference(Date date1, Date date2) {
difference.setSecond(millis/SEC);
difference.setMinute(millis/MIN);
difference.setHour(millis/HOUR);
difference.setHour(millis/DAY);
difference.setDay(millis/DAY);
return difference;
}

Expand Down

0 comments on commit de4972f

Please sign in to comment.