@@ -39,7 +39,7 @@ helper attribute and methods:
39
39
40
40
- ``str``
41
41
42
- The hexadecimal string value of the ``ObjectID ()`` object.
42
+ The hexadecimal string value of the ``ObjectId ()`` object.
43
43
44
44
- :method:`getTimestamp() <ObjectId.getTimestamp()>`
45
45
@@ -51,7 +51,7 @@ helper attribute and methods:
51
51
returned string literal has the format "``ObjectId(...)``".
52
52
53
53
.. versionchanged:: 2.2
54
- In previous versions :method:`ObjectId.toString()> ` returns the
54
+ In previous versions :method:`ObjectId.toString()` returns the
55
55
value of the ObjectId as a hexadecimal string.
56
56
57
57
- :method:`valueOf() <ObjectId.valueOf()>`
@@ -60,10 +60,10 @@ helper attribute and methods:
60
60
The returned string is the ``str`` attribute.
61
61
62
62
.. versionchanged:: 2.2
63
- In previous versions :method:`ObjectId.valueOf()> ` returns the
64
- value of the ObjectId as a hexadecimal string .
63
+ In previous versions :method:`ObjectId.valueOf()` returns the
64
+ `` ObjectId()`` object .
65
65
66
- Consider the example uses of the ``ObjectID ()`` class in the
66
+ Consider the example uses of the ``ObjectId ()`` class in the
67
67
:program:`mongo` shell:
68
68
69
69
- To generate a new ObjectId, use the ``ObjectId()`` constructor with
@@ -92,7 +92,8 @@ Consider the example uses of the ``ObjectID()`` class in the
92
92
93
93
ObjectId("507f191e810c19729de860ea")
94
94
95
- - To return the timestamp of an ``ObjectId()`` object:
95
+ - To return the timestamp of an ``ObjectId()`` object, use the
96
+ :method:`getTimestamp() <ObjectId.getTimestamp()>` method as follows:
96
97
97
98
.. code-block:: javascript
98
99
0 commit comments