| 100 | } |
| 101 | |
| 102 | const 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 | |
| 108 | const double bbgDatetimeToPOSIX(const Datetime& dt) { |
| 109 | boost::gregorian::date bbg_boost_date(dt.year(),dt.month(),dt.day()); |
no outgoing calls
no test coverage detected