Default implementation of gregorian calendar thats makes use of a TimeZone
for it´s operations.
This means that making some operations like plusDays takes into account the result Instant generated to reapply all the rules of the current TimeZone.
no subtypes hierarchy
Initializer |
GregorianZonedDateTime(Instant instant, TimeZone timeZone = ...) Parameters:
|
Attributes | |
date | Source Codeshared actual Date date Returns Refines DateTimeBehavior.date |
dateTime | Source Codeshared actual DateTime dateTime Returns Refines ZoneDateTime.dateTime |
day | Source Codeshared actual Integer day Returns day of month value of this gregorian date. Refines ReadableDate.day |
dayOfEra | Source Codeshared actual Integer dayOfEra Returns day of year value of this gregorian date. 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 |
hours | Source Codeshared actual Integer hours Number of full hours elapsed since last midnight. Refines ReadableTime.hours |
instant | Source Codeshared actual Instant instant All operations of this implementations is based in this Instant. Refines ZoneDateTime.instant |
leapYear | Source Codeshared actual Boolean leapYear Returns Refines ReadableYear.leapYear |
milliseconds | Source Codeshared actual Integer milliseconds Number of milliseconds since last full second. Refines ReadableTime.milliseconds |
millisecondsOfDay | Source Codeshared actual Integer millisecondsOfDay Number of milliseconds since last midnight. Refines ReadableTime.millisecondsOfDay |
minutes | Source Codeshared actual Integer minutes Number of minutes since last full hour. Refines ReadableTime.minutes |
minutesOfDay | Source Codeshared actual Integer minutesOfDay Number of minutes since last midnight. Refines ReadableTime.minutesOfDay |
month | Source Codeshared actual Month month Returns month of this gregorian date. Refines ReadableMonth.month |
predecessor | Source Codeshared actual ZoneDateTime predecessor For predecessor its used the lowest unit of time, this way we can benefit from maximum precision. In this case the predecessor is the current value minus 1 millisecond. Note: The resulting |
seconds | Source Codeshared actual Integer seconds Number of seconds since last minute. Refines ReadableTime.seconds |
secondsOfDay | Source Codeshared actual Integer secondsOfDay Number of seconds since last midnight. Refines ReadableTime.secondsOfDay |
string | Source Codeshared actual String string Returns ISO-8601 formatted String representation of this time of day. Reference: https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC Refines Object.string |
successor | Source Codeshared actual ZoneDateTime successor For successor its used the lowest unit of time, this way we can benefit from maximum precision. In this case the successor is the current value plus 1 millisecond. Note: The resulting |
time | Source Codeshared actual Time time Returns Refines DateTimeBehavior.time |
timeZone | Source Codeshared actual TimeZone timeZone TimeZone to be applied in this implementation. Refines ReadableTimeZone.timeZone |
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: DateTimeBehavior<Element,DateType,TimeType> |
Attributes inherited from: Enumerable<Other> |
Attributes inherited from: Ordinal<Other> |
Attributes inherited from: ReadableDate |
Attributes inherited from: ReadableMonth |
Attributes inherited from: ReadableTime |
Attributes inherited from: ReadableTimeZone |
Attributes inherited from: ReadableYear |
Attributes inherited from: ZoneDateTime |
Methods | |
compare | Source Codeshared actual Comparison compare(ZoneDateTime other) Comparing Refines Comparable.compare |
minusDays | Source Codeshared actual ZoneDateTime minusDays(Integer days) Subtracts number of days from this zoned date and time and returns the resulting Note: The resulting Refines DateBehavior.minusDays |
minusHours | Source Codeshared actual ZoneDateTime minusHours(Integer hours) Subtracts number of hours from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.minusHours |
minusMilliseconds | Source Codeshared actual ZoneDateTime minusMilliseconds(Integer milliseconds) Subtracts number of milliseconds from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.minusMilliseconds |
minusMinutes | Source Codeshared actual ZoneDateTime minusMinutes(Integer minutes) Subtracts number of minutes from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.minusMinutes |
minusMonths | Source Codeshared actual ZoneDateTime minusMonths(Integer months) Subtracts number of months from this zoned date and time and returns the resulting Note 01: 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 Note 02: The resulting Refines MonthBehavior.minusMonths |
minusSeconds | Source Codeshared actual ZoneDateTime minusSeconds(Integer seconds) Subtracts number of seconds from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.minusSeconds |
minusWeeks | Source Codeshared actual ZoneDateTime minusWeeks(Integer weeks) Subtracts number of weeks from this zoned date and time and returns the resulting Note: The resulting Refines DateBehavior.minusWeeks |
minusYears | Source Codeshared actual ZoneDateTime minusYears(Integer years) Subtracts number of years from this zoned date and time and returns the resulting Note 01: 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 Note 02: The resulting Refines YearBehavior.minusYears |
neighbour | Source Codeshared actual ZoneDateTime neighbour(Integer offset) The indirect successor or predecessor at the given
Refines Enumerable.neighbour |
offset | Source Codeshared actual Integer offset(ZoneDateTime other) Compute the offset from the given value, where:
Refines Enumerable.offset |
plusDays | Source Codeshared actual ZoneDateTime plusDays(Integer days) Adds number of days from this zoned date and time and returns the resulting Note: The resulting Refines DateBehavior.plusDays |
plusHours | Source Codeshared actual ZoneDateTime plusHours(Integer hours) Adds number of hours from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.plusHours |
plusMilliseconds | Source Codeshared actual ZoneDateTime plusMilliseconds(Integer milliseconds) Adds number of milliseconds from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.plusMilliseconds |
plusMinutes | Source Codeshared actual ZoneDateTime plusMinutes(Integer minutes) Adds number of minutes from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.plusMinutes |
plusMonths | Source Codeshared actual ZoneDateTime plusMonths(Integer months) Adds number of months to this zoned date and time 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 |
plusSeconds | Source Codeshared actual ZoneDateTime plusSeconds(Integer seconds) Adds number of seconds from this zoned date and time and returns the resulting Note: The resulting Refines TimeBehavior.plusSeconds |
plusWeeks | Source Codeshared actual ZoneDateTime plusWeeks(Integer weeks) Adds number of weeks from this zoned date and time and returns the resulting Note: The resulting Refines DateBehavior.plusWeeks |
plusYears | Source Codeshared actual ZoneDateTime plusYears(Integer years) Adds number of years to this zoned date and time and returns the resulting Note 01: 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 Note 02: The resulting Refines YearBehavior.plusYears |
withDay | Source Codeshared actual ZoneDateTime withDay(Integer dayOfMonth) Returns new Note 01: It should result in a valid gregorian date. Note 02: The resulting Refines DateBehavior.withDay |
withDayOfWeek | Source Codeshared actual ZoneDateTime withDayOfWeek(DayOfWeek dayOfWeek) Returns new Refines DateBehavior.withDayOfWeek |
withDayOfYear | Source Codeshared actual ZoneDateTime withDayOfYear(Integer dayOfYear) Returns new Refines DateBehavior.withDayOfYear |
withHours | Source Codeshared actual ZoneDateTime withHours(Integer hours) Returns new Note 01: It should be a valid hour. Note 02: The resulting Refines TimeBehavior.withHours |
withMilliseconds | Source Codeshared actual ZoneDateTime withMilliseconds(Integer milliseconds) Returns new Note 01: It should be a valid millisecond. Note 02: The resulting Refines TimeBehavior.withMilliseconds |
withMinutes | Source Codeshared actual ZoneDateTime withMinutes(Integer minutes) Returns new Note 01: It should be a valid minute. Note 02: The resulting Refines TimeBehavior.withMinutes |
withMonth | Source Codeshared actual ZoneDateTime withMonth(Month month) Returns new Note 01: It should result in a valid gregorian date. Note 02: The resulting Refines MonthBehavior.withMonth |
withSeconds | Source Codeshared actual ZoneDateTime withSeconds(Integer seconds) Returns new Note 01: It should be a valid second. Note 02: The resulting Refines TimeBehavior.withSeconds |
withWeekOfYear | Source Codeshared actual ZoneDateTime withWeekOfYear(Integer weekNumber) Returns new Refines DateBehavior.withWeekOfYear |
withYear | Source Codeshared actual ZoneDateTime withYear(Integer year) Returns new Note 01: It should result in a valid gregorian date. Note 02: The resulting Refines YearBehavior.withYear |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Comparable<Other> |
Methods inherited from: DateBehavior<Element> |
Methods inherited from: Enumerable<Other> |
Methods inherited from: MonthBehavior<Element> |
Methods inherited from: TimeBehavior<Element> |
Methods inherited from: YearBehavior<Element> |
Methods inherited from: ZoneDateTime |