userver: userver/utils/string_to_duration.hpp File Reference
Loading...
Searching...
No Matches
string_to_duration.hpp File Reference

Detailed Description

Converts strings like "10s", "5d", "1h" to durations.

Definition in file string_to_duration.hpp.

Go to the source code of this file.

#include <chrono>
#include <string>
+ Include dependency graph for string_to_duration.hpp:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  utils
 Utilities.
 

Functions

std::chrono::milliseconds utils::StringToDuration (const std::string &data)
 Converts strings like "10s", "5d", "1h" to durations.