Browse Source

Restoring authorship annotation for <kostyagin@yandex-team.ru>. Commit 2 of 2.

kostyagin 3 years ago
parent
commit
7213cb3148
2 changed files with 12 additions and 12 deletions
  1. 1 1
      util/draft/date.cpp
  2. 11 11
      util/draft/date.h

+ 1 - 1
util/draft/date.cpp

@@ -9,7 +9,7 @@ time_t GetDateStart(time_t ts) {
     memset(&dateTm, 0, sizeof(tm));
     localtime_r(&ts, &dateTm);
 
-    dateTm.tm_isdst = -1; 
+    dateTm.tm_isdst = -1;
 
     dateTm.tm_sec = 0;
     dateTm.tm_min = 0;

+ 11 - 11
util/draft/date.h

@@ -110,20 +110,20 @@ inline bool operator==(const TDate& left, const TDate& right) {
 }
 
 inline int operator-(const TDate& left, const TDate& right) {
-    if (left < right) { 
-        return -(right - left); 
-    } 
+    if (left < right) {
+        return -(right - left);
+    }
     return static_cast<int>((left.Timestamp + SECONDS_IN_DAY / 2 - right.Timestamp) / SECONDS_IN_DAY);
-} 
- 
+}
+
 inline IInputStream& operator>>(IInputStream& left, TDate& right) {
     TString stroka;
-    left >> stroka; 
-    TDate date(stroka.c_str()); 
-    right = date; 
-    return left; 
-} 
- 
+    left >> stroka;
+    TDate date(stroka.c_str());
+    right = date;
+    return left;
+}
+
 inline IOutputStream& operator<<(IOutputStream& left, const TDate& right) {
     return left << right.ToStroka();
 }