diff options
author | vvvv <vvvv@yandex-team.ru> | 2022-02-10 16:46:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:37 +0300 |
commit | a693106aae8a3a3c7236a4ae953058a9611d7a92 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/datetime/base.cpp | |
parent | ad94e93a059747f4fc3d7add88d1a83daf40b733 (diff) | |
download | ydb-a693106aae8a3a3c7236a4ae953058a9611d7a92.tar.gz |
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 2 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 0bc3943348..38ecc3ab96 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"; } |