This datetime instance is immutable and unaffected by this method call.
The following three lines are identical in effect:
YearMonthDay subtracted = dt.minusDays(6); YearMonthDay subtracted = dt.minus(Period.days(6)); YearMonthDay subtracted = dt.withFieldAdded(DurationFieldType.days(), -6);@param days the amount of days to subtract, may be negative @return the new datetime minus the increased days @since 1.1
|
|
|
|
|
|
|
|