class DateUtil {

    public static boolean isBetween(Date beginTime, Date endTime) {
        Assert.notNull(beginTime, "开始时间不能为空");
        Assert.notNull(endTime, "结束时间不能为空");
        Date now = new Date();
        return beginTime.getTime() <= now.getTime()
                && now.getTime() <= endTime.getTime();
    }

}