Github   Telegram
Loading...
Searching...
No Matches
Namespaces | Functions
from_string_saturating.hpp File Reference

Saturating converters from strings to time points. More...

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

Go to the source code of this file.

Namespaces

namespace  utils
 Utilities.
 
namespace  utils::datetime
 Date and time utilities.
 

Functions

std::chrono::system_clock::time_point utils::datetime::FromRfc3339StringSaturating (const std::string &timestring)
 Converts strings like "2012-12-12T00:00:00" to std::chrono::system_clock::time_point in UTC timezone and saturates on overflow.
 
std::chrono::system_clock::time_point utils::datetime::FromStringSaturating (const std::string &timestring, 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.
 

Detailed Description

Saturating converters from strings to time points.

Definition in file from_string_saturating.hpp.