Implementation of get_date method.
| 54 | |
| 55 | // Implementation of get_date method. |
| 56 | time_t curl_utility::get_date(const std::string& format) { |
| 57 | const time_t value = curl_getdate(format.c_str(),nullptr); |
| 58 | if (value == -1) { |
| 59 | throw curl_exception("*** Error while parsing the date ***",__FUNCTION__); |
| 60 | } |
| 61 | return value; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | #endif /* defined(CURLCPP_CURL_UTILITY_H) */ |
nothing calls this directly
no test coverage detected