The calculation will add a duration equivalent to the number of minutes expressed in milliseconds.
The following three lines are identical in effect:
DateTime added = dt.plusMinutes(6); DateTime added = dt.plus(Period.minutes(6)); DateTime added = dt.withFieldAdded(DurationFieldType.minutes(), 6);
This datetime instance is immutable and unaffected by this method call. @param minutes the amount of minutes to add, may be negative @return the new datetime plus the increased minutes @since 1.1
This LocalTime instance is immutable and unaffected by this method call.
The following three lines are identical in effect:
LocalTime added = dt.plusMinutes(6); LocalTime added = dt.plus(Period.minutes(6)); LocalTime added = dt.withFieldAdded(DurationFieldType.minutes(), 6);@param minutes the amount of minutes to add, may be negative @return the new LocalTime plus the increased minutes
This period instance is immutable and unaffected by this method call. @param minutes the amount of minutes to add, may be negative @return the new period plus the increased minutes @throws UnsupportedOperationException if the field is not supported
|
|
|
|
|
|