diff options
author | dobrokot <dobrokot@yandex-team.ru> | 2022-02-10 16:49:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:07 +0300 |
commit | 25d83bf841d8b3ce3886525078f1964ac3c293c5 (patch) | |
tree | bd52fa16c8dd727890b2ef9d87d1a402bd0d3a9a /util/datetime | |
parent | 1d2e8a8e9976488ea69a7e4763aa749244f82612 (diff) | |
download | ydb-25d83bf841d8b3ce3886525078f1964ac3c293c5.tar.gz |
Restoring authorship annotation for <dobrokot@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime')
-rw-r--r-- | util/datetime/systime.cpp | 2 | ||||
-rw-r--r-- | util/datetime/systime.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util/datetime/systime.cpp b/util/datetime/systime.cpp index 6ee7e8fc6e..9944642dad 100644 --- a/util/datetime/systime.cpp +++ b/util/datetime/systime.cpp @@ -61,7 +61,7 @@ char* ctime_r(const time_t* clock, char* buf) { //! @note this code adopted from //! http://osdir.com/ml/web.wget.patches/2005-07/msg00010.html //! Subject: A more robust timegm - msg#00010 -time_t TimeGM(const struct tm* t) { +time_t TimeGM(const struct tm* t) { static const unsigned short int month_to_days[][13] = { {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}, {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335}}; diff --git a/util/datetime/systime.h b/util/datetime/systime.h index 491d36e802..a498ed7ab2 100644 --- a/util/datetime/systime.h +++ b/util/datetime/systime.h @@ -6,7 +6,7 @@ #include <ctime> // timegm and gmtime_r versions that don't need access to filesystem or a big stack -time_t TimeGM(const struct tm* t); +time_t TimeGM(const struct tm* t); struct tm* GmTimeR(const time_t* timer, struct tm* tmbuf); // safe version of ctime, convinient version of ctime_r TString CTimeR(const time_t* timer); |