From f4639bde9648b6a1701846dcf161be4a727e960d Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 22 Mar 2018 20:52:53 -0400 Subject: [PATCH] Document is_leap_second. --- tz.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tz.html b/tz.html index 1f8953b..a6cbf96 100644 --- a/tz.html +++ b/tz.html @@ -26,7 +26,7 @@

Howard E. Hinnant
-2017-12-26
+2018-03-22

Time Zone Database Parser

@@ -2816,6 +2816,25 @@ If abbrev is not equal to nullptr, the information par

+
+template <class Duration>
+std::pair<bool, std::chrono::seconds>
+is_leap_second(utc_time<Duration> const& t);
+
+ +
+

+Returns: If t represents a time_point during a leap +second insertion, the first member of the pair has a value of +true, otherwise false. The second member of the returned +pair holds the number of leap seconds that have been inserted between +t and 1970-01-01. If t represents a time_point +prior to 1970-01-01, the value is 0s. If t represents a +time_point during a leap second insertion, that full leap second is included +in the count. +

+
+

tai_clock