MCPcopy Create free account
hub / github.com/Rblp/Rblpapi / bbgDateToPOSIX

Function bbgDateToPOSIX

src/blpapi_utils.cpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102const double bbgDateToPOSIX(const Datetime& bbg_date) {
103 boost::gregorian::date bbg_boost_date(bbg_date.year(),bbg_date.month(),bbg_date.day());
104 struct tm tm_time(to_tm(bbg_boost_date));
105 return static_cast<double>(mktime(&tm_time));
106}
107
108const double bbgDatetimeToPOSIX(const Datetime& dt) {
109 boost::gregorian::date bbg_boost_date(dt.year(),dt.month(),dt.day());

Callers 2

populateDfRowFunction · 0.85
populateDfRowBDSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected