From 34170b83f104f97ddc21c18af5a49d9597ca76a0 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 13 Apr 2020 01:10:33 +0200 Subject: [PATCH] Apply clang-format --- chrono/datetime.cpp | 4 ++-- chrono/datetime.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/chrono/datetime.cpp b/chrono/datetime.cpp index 7dad960..10da38b 100644 --- a/chrono/datetime.cpp +++ b/chrono/datetime.cpp @@ -217,8 +217,8 @@ string DateTime::toIsoStringWithCustomDelimiters(TimeSpan timeZoneDelta, char da { stringstream s(stringstream::in | stringstream::out); s << setfill('0'); - s << setw(4) << year() << dateDelimiter << setw(2) << month() << dateDelimiter << setw(2) << day() << 'T' << setw(2) << hour() << timeDelimiter << setw(2) << minute() << timeDelimiter - << setw(2) << second(); + s << setw(4) << year() << dateDelimiter << setw(2) << month() << dateDelimiter << setw(2) << day() << 'T' << setw(2) << hour() << timeDelimiter + << setw(2) << minute() << timeDelimiter << setw(2) << second(); const int milli(millisecond()); const int micro(microsecond()); const int nano(nanosecond()); diff --git a/chrono/datetime.h b/chrono/datetime.h index 308fdf4..09e8dcb 100644 --- a/chrono/datetime.h +++ b/chrono/datetime.h @@ -85,7 +85,8 @@ public: constexpr bool isSameDay(const DateTime &other) const; std::string toString(DateTimeOutputFormat format = DateTimeOutputFormat::DateAndTime, bool noMilliseconds = false) const; void toString(std::string &result, DateTimeOutputFormat format = DateTimeOutputFormat::DateAndTime, bool noMilliseconds = false) const; - std::string toIsoStringWithCustomDelimiters(TimeSpan timeZoneDelta = TimeSpan(), char dateDelimiter = '-', char timeDelimiter = ':', char timeZoneDelimiter = ':') const; + std::string toIsoStringWithCustomDelimiters( + TimeSpan timeZoneDelta = TimeSpan(), char dateDelimiter = '-', char timeDelimiter = ':', char timeZoneDelimiter = ':') const; std::string toIsoString(TimeSpan timeZoneDelta = TimeSpan()) const; constexpr std::time_t toTimeStamp() const; static const char *printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation = false);