diff options
author | xpahos <xpahos@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
commit | da8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/datetime/base.cpp | |
parent | 52faf709473af8421da1e2ea84ae1879b16665b8 (diff) | |
download | ydb-da8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e.tar.gz |
Restoring authorship annotation for <xpahos@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/base.cpp')
-rw-r--r-- | util/datetime/base.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/datetime/base.cpp b/util/datetime/base.cpp index 21489991b32..38ecc3ab962 100644 --- a/util/datetime/base.cpp +++ b/util/datetime/base.cpp @@ -181,10 +181,10 @@ TString TInstant::ToString() const { return ::ToString(*this); } -TString TInstant::ToRfc822String() const { - return FormatGmTime("%a, %d %b %Y %H:%M:%S GMT"); -} - +TString TInstant::ToRfc822String() const { + return FormatGmTime("%a, %d %b %Y %H:%M:%S GMT"); +} + TString TInstant::ToStringUpToSeconds() const { char buf[64]; auto len = FormatDate8601(buf, sizeof(buf), TimeT()); @@ -202,10 +202,10 @@ TString TInstant::ToStringLocal() const { return ::ToString(FormatLocal(*this)); } -TString TInstant::ToRfc822StringLocal() const { - return FormatLocalTime("%a, %d %b %Y %H:%M:%S %Z"); -} - +TString TInstant::ToRfc822StringLocal() const { + return FormatLocalTime("%a, %d %b %Y %H:%M:%S %Z"); +} + TString TInstant::ToIsoStringLocalUpToSeconds() const { return ::ToString(FormatIsoLocalUpToSeconds(*this)); } |