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

Detailed Description

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>
+ Include dependency graph for time_of_day.hpp:
+ This graph shows which files directly or indirectly include this file:

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::LogHelperutils::datetime::operator<< (logging::LogHelper &lh, TimeOfDay< Duration > value)