unixtime.patch 838 B

12345678910111213141516171819202122232425262728293031
  1. commit 18fb5623cf2edf70ab8eadab1b2a85251fbd9ee0
  2. author: dude
  3. date: 2017-06-30T13:47:30+03:00
  4. revision: 2969517
  5. Add access to some hidden-in-implementation methods
  6. ISSUE: LIB-693
  7. REVIEW: 293505
  8. --- a/include/cctz/time_zone.h
  9. +++ b/include/cctz/time_zone.h
  10. @@ -307,2 +310,6 @@
  11. +// Access to convert functions which are placed in time_zone_if.h
  12. +time_point<seconds> UnixSecondsToTimePoint(std::int_fast64_t);
  13. +std::int_fast64_t TimePointToUnixSeconds(const time_point<seconds>& tp);
  14. +
  15. } // namespace cctz
  16. --- a/src/time_zone_if.cc
  17. +++ b/src/time_zone_if.cc
  18. @@ -33,2 +33,10 @@
  19. +time_point<seconds> UnixSecondsToTimePoint(std::int_fast64_t seconds) {
  20. + return FromUnixSeconds(seconds);
  21. +}
  22. +
  23. +std::int_fast64_t TimePointToUnixSeconds(const time_point<seconds>& tp) {
  24. + return ToUnixSeconds(tp);
  25. +}
  26. +
  27. } // namespace cctz