aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/systime.h
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/datetime/systime.h
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/systime.h')
-rw-r--r--util/datetime/systime.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/datetime/systime.h b/util/datetime/systime.h
index 167c1dab86..491d36e802 100644
--- a/util/datetime/systime.h
+++ b/util/datetime/systime.h
@@ -3,7 +3,7 @@
#include <util/system/platform.h>
#include <util/generic/string.h>
-#include <ctime>
+#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);
@@ -14,12 +14,12 @@ TString CTimeR(const time_t* timer);
#ifdef _win_
#include <util/system/winint.h>
#include <winsock2.h>
-
+
void FileTimeToTimeval(const FILETIME* ft, struct timeval* tv);
-
+
// obtains the current time, expressed as seconds and microseconds since 00:00 UTC, January 1, 1970
int gettimeofday(struct timeval* tp, void*);
-
+
// thou should not mix these with non-_r functions
tm* localtime_r(const time_t* clock, tm* result);
tm* gmtime_r(const time_t* clock, tm* result);
@@ -30,11 +30,11 @@ inline time_t timegm(struct tm* t) {
}
char* strptime(const char* buf, const char* fmt, struct tm* tm); // strptime.cpp
-#else
+#else
#include <sys/time.h>
-#endif
+#endif
-#ifndef timersub
+#ifndef timersub
#define timersub(tvp, uvp, vvp) \
do { \
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
@@ -44,4 +44,4 @@ char* strptime(const char* buf, const char* fmt, struct tm* tm); // strptime.cpp
(vvp)->tv_usec += 1000000; \
} \
} while (0)
-#endif
+#endif