userver: userver/utils/time_of_day.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
time_of_day.hpp File Reference

A simple implementation of a "time since midnight" datatype. More...

#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:

Go to the source code of this file.

Classes

class  utils::datetime::TimeOfDay< std::chrono::duration< Rep, Period > >
 

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)
 

Detailed Description

A simple implementation of a "time since midnight" datatype.

Definition in file time_of_day.hpp.