A simple implementation of a "time since midnight" datatype.
Definition in file time_of_day.hpp.
Go to the source code of this file.
#include <algorithm>
#include <array>
#include <chrono>
#include <string_view>
#include <type_traits>
#include <vector>
#include <fmt/format.h>
#include <userver/utils/fmt_compat.hpp>
Classes | |
class | utils::datetime::TimeOfDay< std::chrono::duration< Rep, Period > > |
class | fmt::formatter<::utils::datetime::TimeOfDay< Duration > > |
Namespaces | |
namespace | logging |
Logging macro and utilities. | |
namespace | utils |
Utilities. | |
namespace | utils::datetime |
Date and time utilities. | |
Functions | |
Duration arithmetic | |
template<typename LDuration , typename RDuration > | |
auto | utils::datetime::operator- (TimeOfDay< LDuration > lhs, TimeOfDay< RDuration > rhs) |
template<typename Duration , typename Rep , typename Period > | |
TimeOfDay< Duration > | utils::datetime::operator+ (TimeOfDay< Duration > lhs, std::chrono::duration< Rep, Period > rhs) |
template<typename Duration , typename Rep , typename Period > | |
TimeOfDay< Duration > | utils::datetime::operator- (TimeOfDay< Duration > lhs, std::chrono::duration< Rep, Period > rhs) |
template<typename Duration > | |
logging::LogHelper & | utils::datetime::operator<< (logging::LogHelper &lh, TimeOfDay< Duration > value) |