aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/datetime.cpp
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/datetime.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/datetime.cpp')
-rw-r--r--util/draft/datetime.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/draft/datetime.cpp b/util/draft/datetime.cpp
index 902431734d..5cbe7d8847 100644
--- a/util/draft/datetime.cpp
+++ b/util/draft/datetime.cpp
@@ -6,7 +6,7 @@
#include <util/system/fasttime.h>
#include <util/datetime/base.h>
#include <util/datetime/systime.h>
-#include <util/stream/output.h>
+#include <util/stream/output.h>
#include <util/stream/mem.h>
#include <util/string/cast.h>
#include <util/string/printf.h>
@@ -28,12 +28,12 @@ namespace NDatetime {
// [31, ..., 365] or [31, ..., 366] (12 elements)
const ui32* pos = UpperBound(begin, end, yday);
- Y_ENSURE(pos != end, "day no. " << yday << " does not exist in " << (isleap ? "leap" : "non-leap") << " year");
+ Y_ENSURE(pos != end, "day no. " << yday << " does not exist in " << (isleap ? "leap" : "non-leap") << " year");
*month = pos - begin;
*mday = yday - *(pos - 1) + 1;
- Y_ASSERT((*month < 12) && (1 <= *mday) && (*mday <= MonthDays[isleap][*month]));
+ Y_ASSERT((*month < 12) && (1 <= *mday) && (*mday <= MonthDays[isleap][*month]));
}
struct TTimeData {
@@ -215,7 +215,7 @@ namespace NDatetime {
}
template <>
-void In<TMonth>(IInputStream& in, TMonth& t) {
+void In<TMonth>(IInputStream& in, TMonth& t) {
char buf[4];
LoadPodArray(&in, buf, 4);
t.Year = FromString<ui16>(buf, 4);
@@ -224,7 +224,7 @@ void In<TMonth>(IInputStream& in, TMonth& t) {
}
template <>
-void Out<TMonth>(IOutputStream& o, const TMonth& t) {
+void Out<TMonth>(IOutputStream& o, const TMonth& t) {
o << t.Year << Sprintf("%.2hu", (ui16)(t.Month + 1));
}