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