Class DateUtil

java.lang.Object
com.earth2me.essentials.utils.DateUtil

public final class DateUtil extends Object
  • Method Details

    • removeTimePattern

      public static String removeTimePattern(String input)
    • parseDateDiff

      public static long parseDateDiff(String time, boolean future) throws Exception
      Throws:
      Exception
    • parseDateDiff

      public static long parseDateDiff(String time, boolean future, boolean emptyEpoch) throws Exception
      Throws:
      Exception
    • formatDateDiff

      public static String formatDateDiff(long date)
    • formatDateDiff

      public static String formatDateDiff(Calendar fromDate, Calendar toDate)