diff options
author | hippskill <hippskill@yandex-team.ru> | 2022-02-10 16:50:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:12 +0300 |
commit | bd077d09a08e659195376ee97dc24728bb554246 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/datetime/base.h | |
parent | 6362c4a2681cc317ffd22633d773f02de0d13697 (diff) | |
download | ydb-bd077d09a08e659195376ee97dc24728bb554246.tar.gz |
Restoring authorship annotation for <hippskill@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/base.h')
-rw-r--r-- | util/datetime/base.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/datetime/base.h b/util/datetime/base.h index d1cf52c926..5e902b8f63 100644 --- a/util/datetime/base.h +++ b/util/datetime/base.h @@ -84,15 +84,15 @@ constexpr long TVdiff(timeval r1, timeval r2) { TString Strftime(const char* format, const struct tm* tm); -// Use functions below instead of sprint_date (check IGNIETFERRO-892 for details) -void DateToString(char* buf, const struct tm& theTm); -void DateToString(char* buf, time_t when, long* sec = nullptr); -TString DateToString(const struct tm& theTm); -TString DateToString(time_t when, long* sec = nullptr); -// Year in format "YYYY", throws an exception if year not in range [0, 9999] -TString YearToString(const struct tm& theTm); -TString YearToString(time_t when); - +// Use functions below instead of sprint_date (check IGNIETFERRO-892 for details) +void DateToString(char* buf, const struct tm& theTm); +void DateToString(char* buf, time_t when, long* sec = nullptr); +TString DateToString(const struct tm& theTm); +TString DateToString(time_t when, long* sec = nullptr); +// Year in format "YYYY", throws an exception if year not in range [0, 9999] +TString YearToString(const struct tm& theTm); +TString YearToString(time_t when); + template <class S> class TTimeBase { public: |