diff options
author | vvvv <vvvv@yandex-team.ru> | 2022-02-10 16:46:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:34 +0300 |
commit | ad94e93a059747f4fc3d7add88d1a83daf40b733 (patch) | |
tree | 731d57e580bd143e1136e7747f13b26e6bac95d0 /util/datetime/base.cpp | |
parent | 298c6da79f1d8f35089a67f463f0b541bec36d9b (diff) | |
download | ydb-ad94e93a059747f4fc3d7add88d1a83daf40b733.tar.gz |
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime/base.cpp')
-rw-r--r-- | util/datetime/base.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/datetime/base.cpp b/util/datetime/base.cpp index 38ecc3ab96..0bc3943348 100644 --- a/util/datetime/base.cpp +++ b/util/datetime/base.cpp @@ -142,13 +142,13 @@ void Out<TDuration>(IOutputStream& os, TTypeTraits<TDuration>::TFuncParam durati template <> void Out<TInstant>(IOutputStream& os, TTypeTraits<TInstant>::TFuncParam instant) { - char buf[64]; - auto len = FormatDate8601(buf, sizeof(buf), instant.TimeT()); + char buf[64]; + auto len = FormatDate8601(buf, sizeof(buf), instant.TimeT()); - // shouldn't happen due to current implementation of FormatDate8601() and GmTimeR() + // shouldn't happen due to current implementation of FormatDate8601() and GmTimeR() Y_ENSURE(len, TStringBuf("Out<TInstant>: year does not fit into an integer")); - os.Write(buf, len - 1 /* 'Z' */); + os.Write(buf, len - 1 /* 'Z' */); WriteMicroSecondsToStream(os, instant.MicroSecondsOfSecond()); os << 'Z'; } @@ -186,8 +186,8 @@ TString TInstant::ToRfc822String() const { } TString TInstant::ToStringUpToSeconds() const { - char buf[64]; - auto len = FormatDate8601(buf, sizeof(buf), TimeT()); + char buf[64]; + auto len = FormatDate8601(buf, sizeof(buf), TimeT()); if (!len) { ythrow yexception() << "TInstant::ToStringUpToSeconds: year does not fit into an integer"; } |