Calculates the difference between two date time objects, in a given unit. Note that this is an "anti-commutative" in the sense that reversing the arguments will negate the output. This is just like subtraction, i.e. end - start = -(start - end)
end - start = -(start - end)
The later date time object.
The earlier date time object.
The units to calculate the difference in. Defaults to "day".
"day"
Whether or not to round down to an integer. Defaults to true.
true
dateDiff(end, start) = -dateDiff(start, end); Copy
dateDiff(end, start) = -dateDiff(start, end);
Calculates the difference between two date time objects, in a given unit. Note that this is an "anti-commutative" in the sense that reversing the arguments will negate the output. This is just like subtraction, i.e.
end - start = -(start - end)