Common behavior of objects representing a period.
no type hierarchy
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: ReadableDatePeriod |
Attributes inherited from: ReadablePeriod |
Attributes inherited from: ReadableTimePeriod |
Methods | |
minusDays | Source Codeshared formal Self minusDays(Integer days) Returns a copy of this period with the specified number of days subtracted. |
minusHours | Source Codeshared formal Self minusHours(Integer hours) Returns a copy of this period with the specified number of hours subtracted. |
minusMilliseconds | Source Codeshared formal Self minusMilliseconds(Integer milliseconds) Returns a copy of this period with the specified number of milliseconds subtracted. |
minusMinutes | Source Codeshared formal Self minusMinutes(Integer minutes) Returns a copy of this period with the specified number of minutes subtracted. |
minusMonths | Source Codeshared formal Self minusMonths(Integer months) Returns a copy of this period with the specified number of months subtracted. |
minusSeconds | Source Codeshared formal Self minusSeconds(Integer seconds) Returns a copy of this period with the specified number of seconds subtracted. |
minusYears | Source Codeshared formal Self minusYears(Integer years) Returns a copy of this period with the specified number of years subtracted. |
normalized | Source Codeshared formal PeriodBehavior<Self> normalized() Returns a copy of this period with all amounts normalized to the standard ranges for date-time fields. Two normalizations occur, one for years and months, and one for hours, minutes, seconds and nanoseconds. Days are not normalized, as a day may vary in length at daylight savings cutover. Neither is days normalized into months, as number of days per month varies from month to another and depending on the leap year. |
plusDays | Source Codeshared formal Self plusDays(Integer days) Returns a copy of this period with the specified number of days added. |
plusHours | Source Codeshared formal Self plusHours(Integer hours) Returns a copy of this period with the specified number of hours added. |
plusMilliseconds | Source Codeshared formal Self plusMilliseconds(Integer milliseconds) Returns a copy of this period with the specified number of milliseconds added. |
plusMinutes | Source Codeshared formal Self plusMinutes(Integer minutes) Returns a copy of this period with the specified number of minutes added. |
plusMonths | Source Codeshared formal Self plusMonths(Integer months) Returns a copy of this period with the specified number of months added. |
plusSeconds | Source Codeshared formal Self plusSeconds(Integer seconds) Returns a copy of this period with the specified number of seconds added. |
plusYears | Source Codeshared formal Self plusYears(Integer years) Returns a copy of this period with the specified number of years added. |
withDays | Source Codeshared formal Self withDays(Integer daysOfMonth) Returns a copy of this period with the specified amount of days. |
withHours | Source Codeshared formal Self withHours(Integer hours) Returns a copy of this period with the specified amount of hours. |
withMilliseconds | Source Codeshared formal Self withMilliseconds(Integer milliseconds) Returns a copy of this period with the specified amount of milliseconds. |
withMinutes | Source Codeshared formal Self withMinutes(Integer minutes) Returns a copy of this period with the specified amount of minutes. |
withMonths | Source Codeshared formal Self withMonths(Integer month) Returns a copy of this period with the specified amount of months. |
withSeconds | Source Codeshared formal Self withSeconds(Integer seconds) Returns a copy of this period with the specified amount of seconds. |
withYears | Source Codeshared formal Self withYears(Integer year) Returns a copy of this period with the specified amount of years. |
Inherited Methods |
Methods inherited from: Object |