9#include <userver/utils/time_of_day.hpp>
11#include <userver/formats/serialize/to.hpp>
13USERVER_NAMESPACE_BEGIN
17template <
typename Value,
typename Duration>
18Value Serialize(
const utils::
datetime::TimeOfDay<Duration>& value,
To<Value>) {
19 return typename Value::Builder(fmt::to_string(value)).ExtractValue();
22template <
typename Value,
typename Duration,
typename StringBuilder>
23void WriteToStream(
const utils::
datetime::TimeOfDay<Duration>& value, StringBuilder& sw) {
24 WriteToStream(fmt::to_string(value), sw);