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