Class DateUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static  year,  month,  day)  
      static  year,  month,  day,  hour,  minute)  
      static  year,  month,  day,  hour,  minute,  second)  
      static  year,  month,  day,  hour,  minute,  second,  millisecond)  
      static  year,  month,  day,  hour,  minute,  second,  millisecond,  timeZone)  
      static  year,  month,  day,  hour,  minute,  second,  millisecond,  timeZone,  locale)  
      static createNow()  
      static  timeZone)  
      static  timeZone,  locale)  
      static createToday()  
      static  timeZone)  
      static  timeZone,  locale)  
      static  target)  
      static  target)  
      static  target,  locale)  
      static  target,  locale)  
      static  target,  pattern,  locale)  
      static  target,  locale)  
      static  target)  
      static  target)  
      static  target)  
      static  target)  
      static  target)  
      static  target,  locale)  
      static  target,  locale)  
      static  target)  
      static  target)  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • create

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

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

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

        public static  create​( year,
                                       month,
                                       day,
                                       hour,
                                       minute,
                                       second,
                                       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  create​( year,
                                       month,
                                       day,
                                       hour,
                                       minute,
                                       second,
                                       millisecond,
                                       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  create​( year,
                                       month,
                                       day,
                                       hour,
                                       minute,
                                       second,
                                       millisecond,
                                       timeZone,
                                       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  createNow()
        Returns:
        the result
        Since:
        1.1.2
      • createNow

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

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

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

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

        public static  createToday​( timeZone,
                                            locale)
        Parameters:
        timeZone - timeZone
        locale - locale
        Returns:
        the result
        Since:
        2.1.0
      • format

        public static  format​( target,
                                     locale)
      • format

        public static  format​( target,
                                     pattern,
                                     locale)
      • day

        public static  day​( target)
      • month

        public static  month​( target)
      • monthName

        public static  monthName​( target,
                                        locale)
      • monthNameShort

        public static  monthNameShort​( target,
                                             locale)
      • year

        public static  year​( target)
      • dayOfWeek

        public static  dayOfWeek​( target)
      • dayOfWeekName

        public static  dayOfWeekName​( target,
                                            locale)
      • dayOfWeekNameShort

        public static  dayOfWeekNameShort​( target,
                                                 locale)
      • hour

        public static  hour​( target)
      • minute

        public static  minute​( target)
      • second

        public static  second​( target)
      • millisecond

        public static  millisecond​( target)
      • formatISO

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