diff options
author | dude <dude@yandex-team.ru> | 2022-02-10 16:47:26 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:26 +0300 |
commit | b71cb79039a5ce17476c821883ef2e62eb4179d2 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/libs | |
parent | 1799496e670d66495d93a9a9c9d91d19c82b464b (diff) | |
download | ydb-b71cb79039a5ce17476c821883ef2e62eb4179d2.tar.gz |
Restoring authorship annotation for <dude@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/cctz/include/cctz/time_zone.h | 6 | ||||
-rw-r--r-- | contrib/libs/cctz/src/time_zone_if.cc | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/contrib/libs/cctz/include/cctz/time_zone.h b/contrib/libs/cctz/include/cctz/time_zone.h index 31f2fe024a..4fc1a2a24f 100644 --- a/contrib/libs/cctz/include/cctz/time_zone.h +++ b/contrib/libs/cctz/include/cctz/time_zone.h @@ -203,7 +203,7 @@ class time_zone { civil_transition* trans) const { return prev_transition(detail::split_seconds(tp).first, trans); } - + // version() and description() provide additional information about the // time zone. The content of each of the returned strings is unspecified, // however, when the IANA Time Zone Database is the underlying data source @@ -373,10 +373,10 @@ inline bool parse(const std::string& fmt, const std::string& input, return b; } -// Access to convert functions which are placed in time_zone_if.h +// Access to convert functions which are placed in time_zone_if.h time_point<seconds> UnixSecondsToTimePoint(std::int_fast64_t); std::int_fast64_t TimePointToUnixSeconds(const time_point<seconds>& tp); - + } // namespace cctz #endif // CCTZ_TIME_ZONE_H_ diff --git a/contrib/libs/cctz/src/time_zone_if.cc b/contrib/libs/cctz/src/time_zone_if.cc index 27c32f83b0..a80dbcd60d 100644 --- a/contrib/libs/cctz/src/time_zone_if.cc +++ b/contrib/libs/cctz/src/time_zone_if.cc @@ -35,11 +35,11 @@ std::unique_ptr<TimeZoneIf> TimeZoneIf::Load(const std::string& name) { TimeZoneIf::~TimeZoneIf() {} time_point<seconds> UnixSecondsToTimePoint(std::int_fast64_t seconds) { - return FromUnixSeconds(seconds); -} - + return FromUnixSeconds(seconds); +} + std::int_fast64_t TimePointToUnixSeconds(const time_point<seconds>& tp) { - return ToUnixSeconds(tp); -} - + return ToUnixSeconds(tp); +} + } // namespace cctz |