aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorfloatdrop <floatdrop@yandex-team.ru>2022-02-10 16:47:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:15 +0300
commit4267de875ca703ff841f2e025723dadc78f3cc02 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp
parente63b84f1d39557d9e46ac380b1f388271894293c (diff)
downloadydb-4267de875ca703ff841f2e025723dadc78f3cc02.tar.gz
Restoring authorship annotation for <floatdrop@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/timezone_conversion/civil.cpp8
-rw-r--r--library/cpp/timezone_conversion/civil.h14
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/timezone_conversion/civil.cpp b/library/cpp/timezone_conversion/civil.cpp
index eb62e405f8..5986318b9a 100644
--- a/library/cpp/timezone_conversion/civil.cpp
+++ b/library/cpp/timezone_conversion/civil.cpp
@@ -76,10 +76,10 @@ namespace NDatetime {
return result;
}
- TTimeZone GetFixedTimeZone(const long offset) {
- return cctz::fixed_time_zone(std::chrono::seconds(offset));
- }
-
+ TTimeZone GetFixedTimeZone(const long offset) {
+ return cctz::fixed_time_zone(std::chrono::seconds(offset));
+ }
+
TCivilSecond Convert(const TInstant& absTime, const TTimeZone& tz) {
return cctz::convert(TSystemClock::from_time_t(absTime.TimeT()), tz);
}
diff --git a/library/cpp/timezone_conversion/civil.h b/library/cpp/timezone_conversion/civil.h
index 9e809ad6a3..0e95b807ed 100644
--- a/library/cpp/timezone_conversion/civil.h
+++ b/library/cpp/timezone_conversion/civil.h
@@ -100,13 +100,13 @@ namespace NDatetime {
*/
TTimeZone GetTimeZone(TStringBuf name);
- /**
- * Returns a time zone that is a fixed offset (seconds east) from UTC.
- * Note: If the absolute value of the offset is greater than 24 hours
- * you'll get UTC (i.e., zero offset) instead.
- */
- TTimeZone GetFixedTimeZone(const long offset);
-
+ /**
+ * Returns a time zone that is a fixed offset (seconds east) from UTC.
+ * Note: If the absolute value of the offset is greater than 24 hours
+ * you'll get UTC (i.e., zero offset) instead.
+ */
+ TTimeZone GetFixedTimeZone(const long offset);
+
/** Convert civil time from one timezone to another
* @param[in] src is source time with 'from' timezone
* @param[in] from is a initial timezone