An interface for date objects in the ISO-8601 calendar system.
A date is often viewed as triple of year-month-day values. This interface also defines access to other date fields such as day-of-year, day-of-week and week-of-year.
no type hierarchy
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Ordinal<Other> |
Attributes inherited from: ReadableDate |
Methods | |
at | Source Codeshared formal DateTime at(Time time) Returns new DateTime value based on this date and a specified time. |
minus | Source Codeshared formal Date minus(ReadableDatePeriod period) Subtracts a specified period to this date. |
periodFrom | Source Codeshared formal Period periodFrom(Date start) Returns the period between this and the given date. If this date is before the given date then return zero period. |
periodTo | Source Codeshared formal Period periodTo(Date end) Returns the period between this and the given date. If this date is after the given date then return zero period. |
plus | Source Codeshared formal Date plus(ReadableDatePeriod period) Adds a specified period to this date. |
rangeTo | Source Codeshared formal DateRange rangeTo(Date other) |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Comparable<Other> |
Methods inherited from: DateBehavior<Element> |
Methods inherited from: Enumerable<Other> |