aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/systime.cpp
diff options
context:
space:
mode:
authormelkov <melkov@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/datetime/systime.cpp
parent438546c8737d5c1fdeb31157dcf999717d930eec (diff)
downloadydb-2c532b38e6aeb4fd88531027c7335690fd34c4e5.tar.gz
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/systime.cpp')
-rw-r--r--util/datetime/systime.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/datetime/systime.cpp b/util/datetime/systime.cpp
index 1f3b1f5d29..6ee7e8fc6e 100644
--- a/util/datetime/systime.cpp
+++ b/util/datetime/systime.cpp
@@ -6,7 +6,7 @@
#ifdef _win_
void FileTimeToTimeval(const FILETIME* ft, timeval* tv) {
- const i64 NANOINTERVAL = LL(116444736000000000); // Number of 100 nanosecond units from 1/1/1601 to 1/1/1970
+ const i64 NANOINTERVAL = LL(116444736000000000); // Number of 100 nanosecond units from 1/1/1601 to 1/1/1970
union {
ui64 ft_scalar;
FILETIME ft_struct;
@@ -38,14 +38,14 @@ tm* gmtime_r(const time_t* clock, tm* result) {
}
char* ctime_r(const time_t* clock, char* buf) {
- char* res = ctime(clock);
- if (res) {
- memcpy(buf, res, 26);
- return buf;
- }
- return 0;
-}
-
+ char* res = ctime(clock);
+ if (res) {
+ memcpy(buf, res, 26);
+ return buf;
+ }
+ return 0;
+}
+
#endif /* _win_ */
#define YEAR0 1900