New in version 1.5.
Tools for representing MongoDB internal Timestamps.
Create a new Timestamp.
This class is only for use with the MongoDB opLog. If you need to store a regular timestamp, please use a datetime.
Raises TypeError if time is not an instance of :class: int or datetime, or inc is not an instance of int. Raises ValueError if time or inc is not in [0, 2**32).
Parameters : |
|
---|
Changed in version 1.7: time can now be a datetime instance.