Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: ReadableDatePeriod
Attributes inherited from: ReadablePeriod
Attributes inherited from: ReadableTimePeriod
Methods
minusDaysSource Codeshared formal Self minusDays(Integer days)

Returns a copy of this period with the specified number of days subtracted.

minusHoursSource Codeshared formal Self minusHours(Integer hours)

Returns a copy of this period with the specified number of hours subtracted.

minusMillisecondsSource Codeshared formal Self minusMilliseconds(Integer milliseconds)

Returns a copy of this period with the specified number of milliseconds subtracted.

minusMinutesSource Codeshared formal Self minusMinutes(Integer minutes)

Returns a copy of this period with the specified number of minutes subtracted.

minusMonthsSource Codeshared formal Self minusMonths(Integer months)

Returns a copy of this period with the specified number of months subtracted.

minusSecondsSource Codeshared formal Self minusSeconds(Integer seconds)

Returns a copy of this period with the specified number of seconds subtracted.

minusYearsSource Codeshared formal Self minusYears(Integer years)

Returns a copy of this period with the specified number of years subtracted.

normalizedSource 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.

plusDaysSource Codeshared formal Self plusDays(Integer days)

Returns a copy of this period with the specified number of days added.

plusHoursSource Codeshared formal Self plusHours(Integer hours)

Returns a copy of this period with the specified number of hours added.

plusMillisecondsSource Codeshared formal Self plusMilliseconds(Integer milliseconds)

Returns a copy of this period with the specified number of milliseconds added.

plusMinutesSource Codeshared formal Self plusMinutes(Integer minutes)

Returns a copy of this period with the specified number of minutes added.

plusMonthsSource Codeshared formal Self plusMonths(Integer months)

Returns a copy of this period with the specified number of months added.

plusSecondsSource Codeshared formal Self plusSeconds(Integer seconds)

Returns a copy of this period with the specified number of seconds added.

plusYearsSource Codeshared formal Self plusYears(Integer years)

Returns a copy of this period with the specified number of years added.

withDaysSource Codeshared formal Self withDays(Integer daysOfMonth)

Returns a copy of this period with the specified amount of days.

withHoursSource Codeshared formal Self withHours(Integer hours)

Returns a copy of this period with the specified amount of hours.

withMillisecondsSource Codeshared formal Self withMilliseconds(Integer milliseconds)

Returns a copy of this period with the specified amount of milliseconds.

withMinutesSource Codeshared formal Self withMinutes(Integer minutes)

Returns a copy of this period with the specified amount of minutes.

withMonthsSource Codeshared formal Self withMonths(Integer month)

Returns a copy of this period with the specified amount of months.

withSecondsSource Codeshared formal Self withSeconds(Integer seconds)

Returns a copy of this period with the specified amount of seconds.

withYearsSource Codeshared formal Self withYears(Integer year)

Returns a copy of this period with the specified amount of years.

Inherited Methods
Methods inherited from: Object