Class Dates

java.lang.Object
de.galan.commons.time.Dates

@Deprecated(forRemoval=true) public class Dates extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Construction of Date-objects with a fluent interface. Provides a a simple but useful subset for creating, modfing and formatting time-based objects. Application-wide time will be setup in ApplicationClock.
See also https://github.com/galan/commons/wiki/DateDsl

Deprecated in favor of de.galan.commons.time.Instants.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Actual builder class
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Units as own enum for better code-completition support (instead of having ints everywhere)
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Units as own enum for better code-completition support (instead of having ints everywhere)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Date
    date(int year, int month, int day, int hour, int minute, int second)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Date
    date(long dateAsLong)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Same as new Date(dateAsLong)
    static Date
    date(String date)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a java.util.date, input format is "yyyy-MM-dd HH:mm:ss"
    static Date
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    day()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    from(Date date)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Date
    now()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Date
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Date
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DATE_FORMAT

      public static final String DATE_FORMAT
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DATE_FORMAT_ISO

      public static final String DATE_FORMAT_ISO
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • Dates

      public Dates()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • now

      public static Date now()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • tomorrow

      public static Date tomorrow()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • yesterday

      public static Date yesterday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • from

      public static Dates.DateBuilder from(Date date)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • date

      public static Date date(String date)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a java.util.date, input format is "yyyy-MM-dd HH:mm:ss"
    • date

      public static Date date(int year, int month, int day, int hour, int minute, int second)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • date

      public static Date date(long dateAsLong)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Same as new Date(dateAsLong)
    • dateIso

      public static Date dateIso(String date)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • milli

      public static Dates.DatetimeUnit milli()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • millis

      public static Dates.DatetimeUnit millis()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • second

      public static Dates.DatetimeUnit second()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • seconds

      public static Dates.DatetimeUnit seconds()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • minute

      public static Dates.DatetimeUnit minute()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • minutes

      public static Dates.DatetimeUnit minutes()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • hour

      public static Dates.DatetimeUnit hour()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • hours

      public static Dates.DatetimeUnit hours()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • day

      public static Dates.DatetimeUnit day()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • days

      public static Dates.DatetimeUnit days()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • week

      public static Dates.DatetimeUnit week()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • weeks

      public static Dates.DatetimeUnit weeks()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • month

      public static Dates.DatetimeUnit month()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • months

      public static Dates.DatetimeUnit months()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • year

      public static Dates.DatetimeUnit year()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • years

      public static Dates.DatetimeUnit years()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • monday

      public static Dates.WeekdayUnit monday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • tuesday

      public static Dates.WeekdayUnit tuesday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • wednesday

      public static Dates.WeekdayUnit wednesday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • thursday

      public static Dates.WeekdayUnit thursday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • friday

      public static Dates.WeekdayUnit friday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • saturday

      public static Dates.WeekdayUnit saturday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • sunday

      public static Dates.WeekdayUnit sunday()
      Deprecated, for removal: This API element is subject to removal in a future version.