From 42db96705e948109a8ed85b9f1ca376d8d1f5694 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 13 Aug 2022 14:41:24 +0200 Subject: [PATCH] Add formatting for `DateTimeExpression` --- chrono/format.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrono/format.h b/chrono/format.h index cf5f162..e13d3a7 100644 --- a/chrono/format.h +++ b/chrono/format.h @@ -11,6 +11,11 @@ inline std::ostream &operator<<(std::ostream &out, const CppUtilities::DateTime return out << value.toString(CppUtilities::DateTimeOutputFormat::DateAndTime, false); } +inline std::ostream &operator<<(std::ostream &out, const CppUtilities::DateTimeExpression &value) +{ + return out << value.toIsoString(); +} + inline std::ostream &operator<<(std::ostream &out, const CppUtilities::TimeSpan &value) { return out << value.toString(CppUtilities::TimeSpanOutputFormat::Normal, false);