Package de.galan.commons.time
Class Dates
java.lang.Object
de.galan.commons.time.Dates
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.
See also https://github.com/galan/commons/wiki/DateDsl
Deprecated in favor of de.galan.commons.time.Instants.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Actual builder classstatic enumDeprecated, 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 enumDeprecated, 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 -
Constructor Summary
ConstructorsConstructorDescriptionDates()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Datedate(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 Datedate(long dateAsLong) Deprecated, for removal: This API element is subject to removal in a future version.Same as new Date(dateAsLong)static DateDeprecated, 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 DateDeprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitday()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitdays()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnitfriday()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DateBuilderDeprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnithour()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnithours()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitmilli()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitmillis()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitminute()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitminutes()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnitmonday()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitmonth()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitmonths()Deprecated, for removal: This API element is subject to removal in a future version.static Datenow()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnitsaturday()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitsecond()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitseconds()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnitsunday()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnitthursday()Deprecated, for removal: This API element is subject to removal in a future version.static Datetomorrow()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnittuesday()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.WeekdayUnitDeprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitweek()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnitweeks()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnityear()Deprecated, for removal: This API element is subject to removal in a future version.static Dates.DatetimeUnityears()Deprecated, for removal: This API element is subject to removal in a future version.static DateDeprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
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
Deprecated, for removal: This API element is subject to removal in a future version. -
tomorrow
Deprecated, for removal: This API element is subject to removal in a future version. -
yesterday
Deprecated, for removal: This API element is subject to removal in a future version. -
from
Deprecated, for removal: This API element is subject to removal in a future version. -
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
Deprecated, for removal: This API element is subject to removal in a future version. -
date
Deprecated, for removal: This API element is subject to removal in a future version.Same as new Date(dateAsLong) -
dateIso
Deprecated, for removal: This API element is subject to removal in a future version. -
milli
Deprecated, for removal: This API element is subject to removal in a future version. -
millis
Deprecated, for removal: This API element is subject to removal in a future version. -
second
Deprecated, for removal: This API element is subject to removal in a future version. -
seconds
Deprecated, for removal: This API element is subject to removal in a future version. -
minute
Deprecated, for removal: This API element is subject to removal in a future version. -
minutes
Deprecated, for removal: This API element is subject to removal in a future version. -
hour
Deprecated, for removal: This API element is subject to removal in a future version. -
hours
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. -
days
Deprecated, for removal: This API element is subject to removal in a future version. -
week
Deprecated, for removal: This API element is subject to removal in a future version. -
weeks
Deprecated, for removal: This API element is subject to removal in a future version. -
month
Deprecated, for removal: This API element is subject to removal in a future version. -
months
Deprecated, for removal: This API element is subject to removal in a future version. -
year
Deprecated, for removal: This API element is subject to removal in a future version. -
years
Deprecated, for removal: This API element is subject to removal in a future version. -
monday
Deprecated, for removal: This API element is subject to removal in a future version. -
tuesday
Deprecated, for removal: This API element is subject to removal in a future version. -
wednesday
Deprecated, for removal: This API element is subject to removal in a future version. -
thursday
Deprecated, for removal: This API element is subject to removal in a future version. -
friday
Deprecated, for removal: This API element is subject to removal in a future version. -
saturday
Deprecated, for removal: This API element is subject to removal in a future version. -
sunday
Deprecated, for removal: This API element is subject to removal in a future version.
-