#include <userver/formats/bson/types.hpp>
BSON Timestamp.
Public Member Functions | |
| Timestamp () | |
| Creates an empty timestamp.   | |
| Timestamp (uint32_t timestamp, uint32_t increment) | |
| Creates a timestamp with specified values.  | |
| time_t | GetTimestamp () const | 
| Returns stored unix timestamp.  | |
| uint32_t | GetIncrement () const | 
| Returns stored increment.  | |
| uint64_t | Pack () const | 
| Returns packed 64-bit timestamp value.  | |
| bool | operator== (const Timestamp &) const | 
| bool | operator!= (const Timestamp &) const | 
| bool | operator< (const Timestamp &) const | 
| bool | operator> (const Timestamp &) const | 
| bool | operator<= (const Timestamp &) const | 
| bool | operator>= (const Timestamp &) const | 
Static Public Member Functions | |
| static Timestamp | Unpack (uint64_t) | 
| Restores a timestamp from the packed form.  | |
| formats::bson::Timestamp::Timestamp | ( | ) | 
Creates an empty timestamp.