@@ -125,7 +125,7 @@ By default, {+driver-short+} retrieves UTC ``datetime`` values with no supplemen
125
125
information. The following code example retrieves the sample document
126
126
and prints the ``datetime`` value. The printed value is identical to
127
127
the one in the sample document. Select the :guilabel:`Synchronous` or
128
- :guilabel:`Asynchronous` tab to see the corresponding code.
128
+ :guilabel:`Asynchronous` tab to see the corresponding code:
129
129
130
130
.. tabs::
131
131
@@ -184,7 +184,7 @@ Then, pass the ``CodecOptions`` object to the ``get_collection()`` method.
184
184
185
185
The following code example retrieves the ``datetime`` value from the sample document as
186
186
an aware ``datetime``. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab
187
- to see the corresponding code.
187
+ to see the corresponding code:
188
188
189
189
.. tabs::
190
190
@@ -258,7 +258,7 @@ Then, create a ``CodecOptions`` object and pass the following arguments to the c
258
258
The following code example retrieves the sample document,
259
259
but uses the ``tz_aware`` and ``tzinfo`` arguments to automatically localize
260
260
the ``datetime`` value to the ``"US/Pacific"`` time zone. Select the :guilabel:`Synchronous`
261
- or :guilabel:`Asynchronous` tab to see the corresponding code.
261
+ or :guilabel:`Asynchronous` tab to see the corresponding code:
262
262
263
263
.. tabs::
264
264
@@ -343,7 +343,7 @@ The following code example inserts a document containing a ``datetime`` value lo
343
343
to the ``"US/Pacific"`` time zone. {+driver-short+} uses the attached time zone to convert
344
344
the local time to UTC. When the document is retrieved from MongoDB, the ``datetime`` value
345
345
is in UTC. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the
346
- corresponding code.
346
+ corresponding code:
347
347
348
348
.. tabs::
349
349
@@ -601,7 +601,7 @@ attempt to decode the value as a ``datetime.datetime``, allowing
601
601
this behavior to instead return ``~bson.datetime_ms.DatetimeMS`` when
602
602
representations are out-of-range, while returning ``~datetime.datetime``
603
603
objects as before. Select the :guilabel:`Synchronous`
604
- or :guilabel:`Asynchronous` tab to see the corresponding code.
604
+ or :guilabel:`Asynchronous` tab to see the corresponding code:
605
605
606
606
.. tabs::
607
607
@@ -664,7 +664,7 @@ class.
664
664
Another option that does not involve setting ``datetime_conversion`` is to
665
665
filter out document values outside of the range supported by
666
666
``~datetime.datetime``. Select the
667
- :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
667
+ :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
668
668
669
669
.. tabs::
670
670
@@ -687,7 +687,7 @@ filter out document values outside of the range supported by
687
687
cur = await coll.find({'dt': {'$gte': datetime.min, '$lte': datetime.max}})
688
688
689
689
If you don't need the value of ``datetime``, you can filter out just that field. Select the
690
- :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
690
+ :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
691
691
692
692
.. tabs::
693
693
0 commit comments