@Test public void dataIsBefore() throws Exception { assertEquals(DateUtils.dateIsBefore("2017-12-26","2017-12-25"),true); }
public static boolean dateIsBefore(String standDate, String desDate) { try { return YYYYMMDD_FORMAT.parse(desDate).before(YYYYMMDD_FORMAT.parse(standDate)); } catch (ParseException var3) { var3.printStackTrace(); return false; } }
DateUtils { public static boolean dateIsBefore(String standDate, String desDate) { try { return YYYYMMDD_FORMAT.parse(desDate).before(YYYYMMDD_FORMAT.parse(standDate)); } catch (ParseException var3) { var3.printStackTrace(); return false; } } }
DateUtils { public static boolean dateIsBefore(String standDate, String desDate) { try { return YYYYMMDD_FORMAT.parse(desDate).before(YYYYMMDD_FORMAT.parse(standDate)); } catch (ParseException var3) { var3.printStackTrace(); return false; } } DateUtils(); }
DateUtils { public static boolean dateIsBefore(String standDate, String desDate) { try { return YYYYMMDD_FORMAT.parse(desDate).before(YYYYMMDD_FORMAT.parse(standDate)); } catch (ParseException var3) { var3.printStackTrace(); return false; } } DateUtils(); static String todayYyyyMmDd(); static String todayYear(); static String todayMonth(); static String todayDay(); static Date parseLong(Long time); static String todayHhMmSs(); static String todayYyyyMmDdHhMmSs(); static int parseYyyy(String dateTime); static int parseYyyy(String dateTime, SimpleDateFormat simpleDateFormat); static int parseYyyy(Date date); static int parseMm(String dateTime); static int parseMm(String dateTime, SimpleDateFormat simpleDateFormat); static int parseMm(Date date); static int parseDd(String dateTime); static int parseDd(String dateTime, SimpleDateFormat simpleDateFormat); static int parseDd(Date date); static String parseYyyyMmDd(String dateTime); static String formatYyyyMmDd(String dateTime); static String parseYyyyMmDd(String dateTime, SimpleDateFormat simpleDateFormat); static String parseYyyyMmDd(Date date); static String parseHhMmSs(String dateTime); static String parseHhMmSs(String dateTime, SimpleDateFormat simpleDateFormat); static String parseHhMmSs(Date date); static String parseHhMm(String time); static int getWeekNumber(String dateTime); static int getWeekNumber(String dateTime, SimpleDateFormat simpleDateFormat); static int getWeekNumber(Date date); static int getWeekOfMonth(String dateTime); static int getWeekOfMonth(String dateTime, SimpleDateFormat simpleDateFormat); static int getWeekOfMonth(Date date); static int getWeekOfYear(String time); static int getWeekOfYear(String time, SimpleDateFormat simpleDateFormat); static int getWeekOfYear(Date date); static Long dateTimeToTimeStamp(String dateTime); static String timeStampToDateTime(Long timeStamp); static Date string2Date(String time); static Date string2Date(String time, SimpleDateFormat simpleDateFormat); static String date2String(Date date); static String date2String(Date date, SimpleDateFormat simpleDateFormat); static boolean dateIsBefore(String standDate, String desDate); static long minutesBetweenTwoDate(String beginDate, String endDate); static String getChineseZodiac(String dateTime); static String getChineseZodiac(String dateTime, SimpleDateFormat simpleDateFormat); static String getChineseZodiac(Date date); static String getChineseZodiac(int year); static String getZodiac(String dateTime); static String getZodiac(String dateTime, SimpleDateFormat simpleDateFormat); static String getZodiac(Date date); static String getZodiac(int month, int day); String getNowDayOffset(int offset); String getTime(long time); void forward(Calendar cal); void backward(Calendar cal); boolean isLeapYear(int year); int getDaysOfMonth(int year, int month); long secondsMorning(Calendar c); long secondsNight(Calendar c); boolean isSameDay(Calendar c1, Calendar c2); static String formatFriendly(Date date); static String formatDateTime(long dateL); static String formatDateTime(long dateL, String formater); static String formatDateTime(Date date, String formater); static Date parseDate(String strDate); static Date parseTime(String strDate); static Date gainCurrentDate(); static boolean compareDate(Date target1, Date target2); static Date addDateTime(Date target, double hour); static Date subDateTime(Date target, double hour); static String formatDateForExcelDate(Date date); static String formatDateForFileName(Date date); static String formatDateSecond(Date date); static String tempDateSecond(Date date); static Date tempDateSecond(String str); static String formatDateDay(Date date); static String formatDateDetailDay(Date date); static String formatNumber(double number); static Date formateDate(String date); static Date parseStringToDate(String date); static String formatDoubleNumber(double number); static long getTimeMillis(Date date); static long getCurrentDayTimeMillis(); static long convertMillisecond(String day, String format); static int getDateInterval(String sdate1, String sdate2); static int compareTime(String format, String time1, String time2); static String getTomoData(); static String getDataAfterDay(int n); static String getDataAfterDay_simple(int n); }
DateUtils { public static boolean dateIsBefore(String standDate, String desDate) { try { return YYYYMMDD_FORMAT.parse(desDate).before(YYYYMMDD_FORMAT.parse(standDate)); } catch (ParseException var3) { var3.printStackTrace(); return false; } } DateUtils(); static String todayYyyyMmDd(); static String todayYear(); static String todayMonth(); static String todayDay(); static Date parseLong(Long time); static String todayHhMmSs(); static String todayYyyyMmDdHhMmSs(); static int parseYyyy(String dateTime); static int parseYyyy(String dateTime, SimpleDateFormat simpleDateFormat); static int parseYyyy(Date date); static int parseMm(String dateTime); static int parseMm(String dateTime, SimpleDateFormat simpleDateFormat); static int parseMm(Date date); static int parseDd(String dateTime); static int parseDd(String dateTime, SimpleDateFormat simpleDateFormat); static int parseDd(Date date); static String parseYyyyMmDd(String dateTime); static String formatYyyyMmDd(String dateTime); static String parseYyyyMmDd(String dateTime, SimpleDateFormat simpleDateFormat); static String parseYyyyMmDd(Date date); static String parseHhMmSs(String dateTime); static String parseHhMmSs(String dateTime, SimpleDateFormat simpleDateFormat); static String parseHhMmSs(Date date); static String parseHhMm(String time); static int getWeekNumber(String dateTime); static int getWeekNumber(String dateTime, SimpleDateFormat simpleDateFormat); static int getWeekNumber(Date date); static int getWeekOfMonth(String dateTime); static int getWeekOfMonth(String dateTime, SimpleDateFormat simpleDateFormat); static int getWeekOfMonth(Date date); static int getWeekOfYear(String time); static int getWeekOfYear(String time, SimpleDateFormat simpleDateFormat); static int getWeekOfYear(Date date); static Long dateTimeToTimeStamp(String dateTime); static String timeStampToDateTime(Long timeStamp); static Date string2Date(String time); static Date string2Date(String time, SimpleDateFormat simpleDateFormat); static String date2String(Date date); static String date2String(Date date, SimpleDateFormat simpleDateFormat); static boolean dateIsBefore(String standDate, String desDate); static long minutesBetweenTwoDate(String beginDate, String endDate); static String getChineseZodiac(String dateTime); static String getChineseZodiac(String dateTime, SimpleDateFormat simpleDateFormat); static String getChineseZodiac(Date date); static String getChineseZodiac(int year); static String getZodiac(String dateTime); static String getZodiac(String dateTime, SimpleDateFormat simpleDateFormat); static String getZodiac(Date date); static String getZodiac(int month, int day); String getNowDayOffset(int offset); String getTime(long time); void forward(Calendar cal); void backward(Calendar cal); boolean isLeapYear(int year); int getDaysOfMonth(int year, int month); long secondsMorning(Calendar c); long secondsNight(Calendar c); boolean isSameDay(Calendar c1, Calendar c2); static String formatFriendly(Date date); static String formatDateTime(long dateL); static String formatDateTime(long dateL, String formater); static String formatDateTime(Date date, String formater); static Date parseDate(String strDate); static Date parseTime(String strDate); static Date gainCurrentDate(); static boolean compareDate(Date target1, Date target2); static Date addDateTime(Date target, double hour); static Date subDateTime(Date target, double hour); static String formatDateForExcelDate(Date date); static String formatDateForFileName(Date date); static String formatDateSecond(Date date); static String tempDateSecond(Date date); static Date tempDateSecond(String str); static String formatDateDay(Date date); static String formatDateDetailDay(Date date); static String formatNumber(double number); static Date formateDate(String date); static Date parseStringToDate(String date); static String formatDoubleNumber(double number); static long getTimeMillis(Date date); static long getCurrentDayTimeMillis(); static long convertMillisecond(String day, String format); static int getDateInterval(String sdate1, String sdate2); static int compareTime(String format, String time1, String time2); static String getTomoData(); static String getDataAfterDay(int n); static String getDataAfterDay_simple(int n); static final SimpleDateFormat YYYYMMDD_FORMAT; static final SimpleDateFormat HHMMSS_FORMAT; static final SimpleDateFormat HHMM_FORMAT; static final SimpleDateFormat YYYYMMDDHHMMSS_FORMAT; static final String DF_YYYY_MM_DD_HH_MM_SS; static final String DF_YYYY_MM_DD_HH_MM; static final String DF_YYYY_MM_DD; static final String DF_HH_MM_SS; static final String DF_HH_MM; }