aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/date.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/draft/date.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/date.h')
-rw-r--r--util/draft/date.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/draft/date.h b/util/draft/date.h
index 13d86032b7..e3eb616fe5 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();
}