Skip to content

Commit 703da6d

Browse files
committed
specify milliseconds when subtracting dates
1 parent 5ffdc1e commit 703da6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/reference/operator/aggregation/subtract.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ Subtract Two Dates
6565
~~~~~~~~~~~~~~~~~~
6666

6767
The following aggregation uses the :expression:`$subtract` expression
68-
to subtract ``$date`` from the current date:
68+
to subtract ``$date`` from the current date and returns the difference
69+
in milliseconds:
6970

7071
.. code-block:: javascript
7172

0 commit comments

Comments
 (0)