@@ -260,30 +260,6 @@ that are not supported in JSON. We've added some utilities for working
260260with :mod: `json ` and :mod: `simplejson ` in the
261261:mod: `~bson.json_util ` module.
262262
263- .. _year-2038-problem :
264-
265- Why do I get an error for dates on or after 2038?
266- -------------------------------------------------
267- On Unix systems, dates are represented as seconds from 1 January 1970 and
268- usually stored in the C :mod: `time_t ` type. On most 32-bit operating systems
269- :mod: `time_t ` is a signed 4 byte integer which means it can't handle dates
270- after 19 January 2038; this is known as the `year 2038 problem
271- <http://en.wikipedia.org/wiki/Year_2038_problem> `_. Neither MongoDB nor Python
272- uses :mod: `time_t ` to represent dates internally so do not suffer from this
273- problem, but Python's :mod: `datetime.datetime.fromtimestamp() ` does, which
274- means it is susceptible.
275-
276- Previous to version 2.0, PyMongo used :mod: `datetime.datetime.fromtimestamp() `
277- in its pure Python :mod: `bson ` module. Therefore, on 32-bit systems you may
278- get an error retrieving dates after 2038 from MongoDB using older versions
279- of PyMongo with the pure Python version of :mod: `bson `.
280-
281- This problem was fixed in the pure Python implementation of :mod: `bson ` by
282- commit ``b19ab334af2a29353529 `` (8 June 2011 - PyMongo 2.0).
283-
284- The C implementation of :mod: `bson ` also used to suffer from this problem but
285- it was fixed in commit ``566bc9fb7be6f9ab2604 `` (10 May 2010 - PyMongo 1.7).
286-
287263Why do I get OverflowError decoding dates stored by another language's driver?
288264------------------------------------------------------------------------------
289265PyMongo decodes BSON datetime values to instances of Python's
0 commit comments