Class DateUtils


  • public final class DateUtils
    extends Object
    Since:
    1.0
    Author:
    Daniel Fernández
    • Method Detail

      • create

        public static Calendar create(Object year,
                                      Object month,
                                      Object day)
        Parameters:
        year - year
        month - month
        day - day
        Returns:
        the result
        Since:
        1.1.2
      • create

        public static Calendar create(Object year,
                                      Object month,
                                      Object day,
                                      Object hour,
                                      Object minute)
        Parameters:
        year - year
        month - month
        day - day
        hour - hour
        minute - minute
        Returns:
        the result
        Since:
        1.1.2
      • create

        public static Calendar create(Object year,
                                      Object month,
                                      Object day,
                                      Object hour,
                                      Object minute,
                                      Object second)
        Parameters:
        year - year
        month - month
        day - day
        hour - hour
        minute - minute
        second - second
        Returns:
        the result
        Since:
        1.1.2
      • create

        public static Calendar create(Object year,
                                      Object month,
                                      Object day,
                                      Object hour,
                                      Object minute,
                                      Object second,
                                      Object millisecond)
        Parameters:
        year - year
        month - month
        day - day
        hour - hour
        minute - minute
        second - second
        millisecond - millisecond
        Returns:
        the result
        Since:
        1.1.2
      • create

        public static Calendar create(Object year,
                                      Object month,
                                      Object day,
                                      Object hour,
                                      Object minute,
                                      Object second,
                                      Object millisecond,
                                      Object timeZone)
        Parameters:
        year - year
        month - month
        day - day
        hour - hour
        minute - minute
        second - second
        millisecond - millisecond
        timeZone - timeZone
        Returns:
        the result
        Since:
        2.1.0
      • create

        public static Calendar create(Object year,
                                      Object month,
                                      Object day,
                                      Object hour,
                                      Object minute,
                                      Object second,
                                      Object millisecond,
                                      Object timeZone,
                                      Locale locale)
        Parameters:
        year - year
        month - month
        day - day
        hour - hour
        minute - minute
        second - second
        millisecond - millisecond
        timeZone - timeZone
        locale - locale
        Returns:
        the result
        Since:
        2.1.0
      • createNow

        public static Calendar createNow()
        Returns:
        the result
        Since:
        1.1.2
      • createNow

        public static Calendar createNow(Object timeZone)
        Parameters:
        timeZone - timeZone
        Returns:
        the result
        Since:
        2.1.0
      • createNow

        public static Calendar createNow(Object timeZone,
                                         Locale locale)
        Parameters:
        timeZone - timeZone
        locale - locale
        Returns:
        the result
        Since:
        2.1.0
      • createToday

        public static Calendar createToday()
        Returns:
        the result
        Since:
        1.1.2
      • createToday

        public static Calendar createToday(Object timeZone)
        Parameters:
        timeZone - timeZone
        Returns:
        the result
        Since:
        2.1.0
      • createToday

        public static Calendar createToday(Object timeZone,
                                           Locale locale)
        Parameters:
        timeZone - timeZone
        locale - locale
        Returns:
        the result
        Since:
        2.1.0
      • dayOfWeekNameShort

        public static String dayOfWeekNameShort(Object target,
                                                Locale locale)
      • millisecond

        public static Integer millisecond(Object target)
      • formatISO

        public static String formatISO(Object target)
        Parameters:
        target - target
        Returns:
        the result
        Since:
        2.1.4