diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:46 +0300 |
commit | 8cbc307de0221f84c80c42dcbe07d40727537e2c (patch) | |
tree | 625d5a673015d1df891e051033e9fcde5c7be4e5 /util/draft/date.h | |
parent | 30d1ef3941e0dc835be7609de5ebee66958f215a (diff) | |
download | ydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/draft/date.h')
-rw-r--r-- | util/draft/date.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/draft/date.h b/util/draft/date.h index e3eb616fe5..13d86032b7 100644 --- a/util/draft/date.h +++ b/util/draft/date.h @@ -1,7 +1,7 @@ #pragma once -#include <util/stream/output.h> -#include <util/stream/input.h> +#include <util/stream/output.h> +#include <util/stream/input.h> #include <util/generic/string.h> #include <util/datetime/constants.h> @@ -83,8 +83,8 @@ public: friend bool operator==(const TDate& left, const TDate& right); friend int operator-(const TDate& left, const TDate& right); - friend IInputStream& operator>>(IInputStream& left, TDate& right); - friend IOutputStream& operator<<(IOutputStream& left, const TDate& right); + friend IInputStream& operator>>(IInputStream& left, TDate& right); + friend IOutputStream& operator<<(IOutputStream& left, const TDate& right); }; Y_DECLARE_PODTYPE(TDate); @@ -116,7 +116,7 @@ inline int operator-(const TDate& left, const TDate& right) { return static_cast<int>((left.Timestamp + SECONDS_IN_DAY / 2 - right.Timestamp) / SECONDS_IN_DAY); } -inline IInputStream& operator>>(IInputStream& left, TDate& right) { +inline IInputStream& operator>>(IInputStream& left, TDate& right) { TString stroka; left >> stroka; TDate date(stroka.c_str()); @@ -124,6 +124,6 @@ inline IInputStream& operator>>(IInputStream& left, TDate& right) { return left; } -inline IOutputStream& operator<<(IOutputStream& left, const TDate& right) { +inline IOutputStream& operator<<(IOutputStream& left, const TDate& right) { return left << right.ToStroka(); } |