Serializers for std::chrono::duration types.
Definition in file serialize_duration.hpp.
Go to the source code of this file.
#include <chrono>
#include <userver/formats/json/string_builder_fwd.hpp>
#include <userver/formats/json/value_builder.hpp>
Namespaces | |
namespace | formats |
Value formats representation, parsing and serialization. | |
namespace | formats::serialize |
Common serializers. | |
Functions | |
template<class Rep , class Period > | |
static json::Value | formats::serialize::Serialize (std::chrono::duration< Rep, Period > duration, To< formats::json::Value >) |
template<class Rep , class Period > | |
static void | formats::serialize::WriteToStream (std::chrono::duration< Rep, Period > duration, formats::json::StringBuilder &sw) |