Default implementation of a gregorian calendar
no subtypes hierarchy
Initializer |
GregorianDate(Integer dayOfEra) Parameters:
|
Attributes | |
day | Source Codeshared actual Integer day Returns day of month value of this gregorian date. Refines ReadableDate.day |
dayOfEra | Source Codeshared actual Integer dayOfEra Every Refines ReadableDate.dayOfEra |
dayOfWeek | Source Codeshared actual DayOfWeek dayOfWeek Returns current day of the week. Refines ReadableDate.dayOfWeek |
dayOfYear | Source Codeshared actual Integer dayOfYear Returns day of year value of this gregorian date. Refines ReadableDate.dayOfYear |
leapYear | Source Codeshared actual Boolean leapYear Returns Refines ReadableYear.leapYear |
month | Source Codeshared actual Month month Returns month of this gregorian date. Refines ReadableMonth.month |
predecessor | Source Codeshared actual Date predecessor Returns gregorian date immediately preceding this date. For successor its used the lowest unit of date, this way we can benefit from maximum precision. In this case the successor is the current value minus 1 day. |
string | Source Codeshared actual String string Returns ISO-8601 formatted String representation of this date. Reference: https://en.wikipedia.org/wiki/ISO_8601#Dates Refines Object.string |
successor | Source Codeshared actual Date successor Returns gregorian date immediately succeeding this date. For successor its used the lowest unit of date, this way we can benefit from maximum precision. In this case the successor is the current value plus 1 day. |
weekOfYear | Source Codeshared actual Integer weekOfYear Returns week of year according to ISO-8601 week number calculation rules. Refines ReadableDate.weekOfYear |
year | Source Codeshared actual Integer year Returns year of this gregorian date. Refines ReadableYear.year |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Date |
Attributes inherited from: Enumerable<Other> |
Attributes inherited from: Ordinal<Other> |
Attributes inherited from: ReadableDate |
Attributes inherited from: ReadableMonth |
Attributes inherited from: ReadableYear |
Methods | |
at | Source Codeshared actual DateTime at(Time time) |
compare | Source Codeshared actual Comparison compare(Date other) Dates from same chronology can be compared if they have same day of era. Refines Comparable.compare |
minus | Source Codeshared actual Date minus(ReadableDatePeriod amount) Subtracts specified date period from this date and returns the new Refines Date.minus |
minusDays | Source Codeshared actual Date minusDays(Integer days) Subtracts number of days from this date and returns the resulting Refines DateBehavior.minusDays |
minusMonths | Source Codeshared actual Date minusMonths(Integer months) Subtracts number of months from this date and returns the resulting date. Note: Day of month value of the resulting date will be truncated to the valid range of the target date if necessary. This means for example, that Refines MonthBehavior.minusMonths |
minusWeeks | Source Codeshared actual Date minusWeeks(Integer weeks) Subtracts number of weeks from this date and returns the resulting Refines DateBehavior.minusWeeks |
minusYears | Source Codeshared actual Date minusYears(Integer years) Subtracts number of years from this date returning the resulting the new gregorian date. Note: Day of month value of the resulting date will be truncated to the valid range of the target date if necessary. This means for example, that Refines YearBehavior.minusYears |
neighbour | Source Codeshared actual Date neighbour(Integer offset) The indirect successor or predecessor at the given
Refines Enumerable.neighbour |
offset | Source Codeshared actual Integer offset(Date other) Compute the offset from the given value, where:
Refines Enumerable.offset |
periodFrom | Source Codeshared actual Period periodFrom(Date start) Returns the period between this and the given date. If this date is before the given date then return negative period. Refines Date.periodFrom |
periodTo | Source Codeshared actual Period periodTo(Date end) Returns the period between this and the given date. If this date is after the given date then return negative period. Refines Date.periodTo |
plus | Source Codeshared actual Date plus(ReadableDatePeriod amount) |
plusDays | Source Codeshared actual Date plusDays(Integer days) Adds number of days to this date and returns the resulting Refines DateBehavior.plusDays |
plusMonths | Source Codeshared actual Date plusMonths(Integer months) Adds number of months to this date and returns the resulting date. Note: Day of month value of the resulting date will be truncated to the valid range of the target date if necessary. This means for example, that Refines MonthBehavior.plusMonths |
plusWeeks | Source Codeshared actual Date plusWeeks(Integer weeks) Adds number of weeks to this date and returns the resulting Refines DateBehavior.plusWeeks |
plusYears | Source Codeshared actual Date plusYears(Integer years) Adds number of years to this date returning the resulting gregorian date. Note: Day of month value of the resulting date will be truncated to the valid range of the target date if necessary. This means for example, that Refines YearBehavior.plusYears |
rangeTo | Source Codeshared actual DateRange rangeTo(Date other) Returns the Refines Date.rangeTo |
withDay | Source Codeshared actual Date withDay(Integer day) Returns new date with the day of month value set to the specified value. Note: It should result in a valid gregorian date. Refines DateBehavior.withDay |
withDayOfWeek | Source Codeshared actual Date withDayOfWeek(DayOfWeek dayOfWeek) Returns a copy of this period with the specified day of week. Refines DateBehavior.withDayOfWeek |
withDayOfYear | Source Codeshared actual Date withDayOfYear(Integer dayOfYear) Returns a copy of this period with the specified day of year. Refines DateBehavior.withDayOfYear |
withMonth | Source Codeshared actual Date withMonth(Month month) Returns new date with the month set to the specified value. Note: It should result in a valid gregorian date. Refines MonthBehavior.withMonth |
withWeekOfYear | Source Codeshared actual Date withWeekOfYear(Integer weekOfYear) Returns new date with the specified weekOfYear value. Note: It should result in a valid gregorian date. Refines DateBehavior.withWeekOfYear |
withYear | Source Codeshared actual Date withYear(Integer year) Returns new date with the specified year value. Note: It should result in a valid gregorian date. Refines YearBehavior.withYear |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Comparable<Other> |
Methods inherited from: Date |
Methods inherited from: DateBehavior<Element> |
Methods inherited from: Enumerable<Other> |
Methods inherited from: MonthBehavior<Element> |
Methods inherited from: YearBehavior<Element> |