* This class provides some utilities that are unrelated to * the libcurl interfaces, so they are enclosed in this class. */
| 35 | * the libcurl interfaces, so they are enclosed in this class. |
| 36 | */ |
| 37 | class curl_utility { |
| 38 | public: |
| 39 | /** |
| 40 | * This method returns the number of seconds since the Epoch, |
| 41 | * January 1st 1970 00:00:00 in the UTC time zone, for the date |
| 42 | * and time that the datestring parameter specifies. Check the |
| 43 | * online documentation for more information about the datetime |
| 44 | * parameter. |
| 45 | */ |
| 46 | static time_t get_date(const std::string&); |
| 47 | private: |
| 48 | /** |
| 49 | * Build an object of this type have no sense. So let's hide |
| 50 | * the constructor. |
| 51 | */ |
| 52 | curl_utility() = default; |
| 53 | }; |
| 54 | |
| 55 | // Implementation of get_date method. |
| 56 | time_t curl_utility::get_date(const std::string& format) { |
nothing calls this directly
no outgoing calls
no test coverage detected