The calculation will add a duration equivalent to the number of milliseconds.
The following three lines are identical in effect:
DateTime added = dt.plusMillis(6); DateTime added = dt.plus(Period.millis(6)); DateTime added = dt.withFieldAdded(DurationFieldType.millis(), 6);
This datetime instance is immutable and unaffected by this method call. @param millis the amount of millis to add, may be negative @return the new datetime plus the increased millis @since 1.1
This instance is immutable and unaffected by this method call. @param millisToAdd the milliseconds to add, positive or negative @return an {@code Instant} based on this instant with the specified milliseconds added, not null @throws DateTimeException if the result exceeds the maximum or minimum instant @throws ArithmeticException if numeric overflow occurs
|
|
|
|
|
|
|
|