MongoDB C++ Driver  mongocxx-3.0.1
Public Member Functions | Related Functions | List of all members
bsoncxx::types::b_date Struct Reference

A BSON date value. More...

#include <types.hpp>

Public Member Functions

 b_date (int64_t value)
 Constructor for b_date. More...
 
 b_date (const std::chrono::system_clock::time_point &tp)
 Constructor for b_date. More...
 
 operator int64_t ()
 Conversion operator unwrapping a int64_t.
 
 operator std::chrono::system_clock::time_point ()
 Conversion operator unwrapping a time_point.
 

Related Functions

(Note that these are not member functions.)

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

bsoncxx::types::b_date::b_date ( int64_t  value)
inlineexplicit

Constructor for b_date.

Parameters
valueAn int64_t representing milliseconds since the epoch.
bsoncxx::types::b_date::b_date ( const std::chrono::system_clock::time_point &  tp)
inlineexplicit

Constructor for b_date.

Parameters
valueA system_clock time_point.

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