aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cctz/patches/unixtime.patch
blob: 78f36e6940fa370b0e79cddb3eb076060a1e76e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
commit 18fb5623cf2edf70ab8eadab1b2a85251fbd9ee0
author: dude
date: 2017-06-30T13:47:30+03:00
revision: 2969517

    Add access to some hidden-in-implementation methods
    ISSUE: LIB-693
    REVIEW: 293505

--- a/include/cctz/time_zone.h
+++ b/include/cctz/time_zone.h
@@ -307,2 +310,6 @@
 
+// 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
--- a/src/time_zone_if.cc
+++ b/src/time_zone_if.cc
@@ -33,2 +33,10 @@
 
+time_point<seconds> UnixSecondsToTimePoint(std::int_fast64_t seconds) {
+  return FromUnixSeconds(seconds);
+}
+
+std::int_fast64_t TimePointToUnixSeconds(const time_point<seconds>& tp) {
+  return ToUnixSeconds(tp);
+}
+
 }  // namespace cctz