diff options
author | inngonch <inngonch@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:19 +0300 |
commit | 7622df751aca736b9e1e20015e6787d5a65643b0 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/datetime/base.cpp | |
parent | 259606d47f0a87d4980322c10899f41f246ad20c (diff) | |
download | ydb-7622df751aca736b9e1e20015e6787d5a65643b0.tar.gz |
Restoring authorship annotation for <inngonch@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/base.cpp')
-rw-r--r-- | util/datetime/base.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/datetime/base.cpp b/util/datetime/base.cpp index 6cbc414c92..38ecc3ab96 100644 --- a/util/datetime/base.cpp +++ b/util/datetime/base.cpp @@ -214,18 +214,18 @@ TString TInstant::ToStringLocalUpToSeconds() const { return ::ToString(FormatLocalUpToSeconds(*this)); } -TString TInstant::FormatLocalTime(const char* format) const noexcept { - struct tm theTm; - LocalTime(&theTm); - return Strftime(format, &theTm); -} - -TString TInstant::FormatGmTime(const char* format) const noexcept { - struct tm theTm; - GmTime(&theTm); - return Strftime(format, &theTm); -} - +TString TInstant::FormatLocalTime(const char* format) const noexcept { + struct tm theTm; + LocalTime(&theTm); + return Strftime(format, &theTm); +} + +TString TInstant::FormatGmTime(const char* format) const noexcept { + struct tm theTm; + GmTime(&theTm); + return Strftime(format, &theTm); +} + ::NPrivate::TPrintableLocalTime<false, true> FormatIsoLocal(TInstant instant) { return ::NPrivate::TPrintableLocalTime<false, true>(instant); } |