Saturating converters from strings to time points.
Definition in file from_string_saturating.hpp.
Go to the source code of this file.
#include <chrono>
#include <string>
Namespaces | |
namespace | utils |
Utilities. | |
namespace | utils::datetime |
Date and time utilities. | |
Functions | |
std::chrono::system_clock::time_point | utils::datetime::FromRfc3339StringSaturating (const std::string ×tring) |
Converts strings like "2012-12-12T00:00:00" to std::chrono::system_clock::time_point in UTC timezone and saturates on overflow Example: | |
std::chrono::system_clock::time_point | utils::datetime::FromStringSaturating (const std::string ×tring, const std::string &format) |
Converts strings of the specified format starting with "%Y" to std::chrono::system_clock::time_point in UTC timezone and saturates on overflow. | |