package com.ssj.conch.util;

import java.util.Date;

import  com.ssj.framework.weixin.util.DateUtil;

public class TimeUtils {

    /**
     * 判断当前时间是否比date多time分钟
     * @param date 比较日期
     * @param time 分钟
     * @return
     */
    public static boolean isMoreThen (Date date, int time){
        return (System.currentTimeMillis() - DateUtil.getMillis(date)) > time * 60 * 1000L;
    }
}
