Skip to content

Commit 67b1513

Browse files
drmirrorkay-kim
authored andcommitted
Add explanation about date storage and range
This is the page that comes up when you google "mongodb date". The information about possible date range is now also on http://docs.mongodb.org/manual/reference/bson-types/#date, but that page is a lot harder to find. Alternatively, a link from this page to that page could be added. Signed-off-by: kay <[email protected]>
1 parent 75f2b83 commit 67b1513

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/core/shell-types.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ either as a string or as a ``Date`` object:
3131
- ``ISODate()`` constructor which returns a ``Date`` object using the
3232
``ISODate()`` wrapper.
3333

34+
Internally, ``Date`` objects are stored as a 64 bit integer representing
35+
the number of milliseconds since the Unix epoch (Jan 1, 1970), which results
36+
in a representable date range of about 290 millions years into the past and
37+
future.
38+
3439
Return Date as a String
3540
```````````````````````
3641

0 commit comments

Comments
 (0)