MongoDB C++ Driver mongocxx-3.10.1
Loading...
Searching...
No Matches
Public Member Functions | Related Symbols | List of all members
bsoncxx::v_noabi::types::b_date Struct Reference

A BSON date value. More...

#include <types.hpp>

Public Member Functions

 b_date (std::chrono::milliseconds value)
 Constructor for b_date.
 
 b_date (const std::chrono::system_clock::time_point &tp)
 Constructor for b_date.
 
 operator int64_t () const
 Conversion operator unwrapping a int64_t.
 
int64_t to_int64 () const
 Manually convert this b_date to an int64_t.
 
 operator std::chrono::system_clock::time_point () const
 Conversion operator unwrapping a time_point.
 

Related Symbols

(Note that these are not member symbols.)

bool operator== (const b_date &lhs, const b_date &rhs)
 free function comparator for b_date
 

Detailed Description

A BSON date value.

Constructor & Destructor Documentation

◆ b_date() [1/2]

bsoncxx::v_noabi::types::b_date::b_date ( std::chrono::milliseconds  value)
inlineexplicit

Constructor for b_date.

Parameters
valueMilliseconds since the system_clock epoch.

◆ b_date() [2/2]

bsoncxx::v_noabi::types::b_date::b_date ( const std::chrono::system_clock::time_point &  tp)
inlineexplicit

Constructor for b_date.

Parameters
tpA system_clock time_point.

Friends And Related Symbol Documentation

◆ operator==()

bool operator== ( const b_date lhs,
const b_date rhs 
)
related

free function comparator for b_date


The documentation for this struct was generated from the following file: