aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/base.cpp
diff options
context:
space:
mode:
authorinngonch <inngonch@yandex-team.ru>2022-02-10 16:49:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:19 +0300
commit7622df751aca736b9e1e20015e6787d5a65643b0 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/datetime/base.cpp
parent259606d47f0a87d4980322c10899f41f246ad20c (diff)
downloadydb-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.cpp24
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);
}