MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / get_date

Method get_date

include/curl_utility.h:56–62  ·  view source on GitHub ↗

Implementation of get_date method.

Source from the content-addressed store, hash-verified

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) */

Callers

nothing calls this directly

Calls 1

curl_exceptionClass · 0.85

Tested by

no test coverage detected