aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/systime.cpp
diff options
context:
space:
mode:
authormelkov <melkov@yandex-team.ru>2022-02-10 16:48:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:13 +0300
commit438546c8737d5c1fdeb31157dcf999717d930eec (patch)
treed29d229abd2f9f889b9b7eb148d635059dc26acf /util/datetime/systime.cpp
parent96647fad5355ff5ef45a00a6d85c097028584ab0 (diff)
downloadydb-438546c8737d5c1fdeb31157dcf999717d930eec.tar.gz
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 1 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 6ee7e8fc6ed..1f3b1f5d29c 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