From f4639bde9648b6a1701846dcf161be4a727e960d Mon Sep 17 00:00:00 2001
From: Howard Hinnant
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 atime_point
during a leap +second insertion, the first member of thepair
has a value of +true
, otherwisefalse
. The second member of the returned +pair
holds the number of leap seconds that have been inserted between +t
and 1970-01-01. Ift
represents atime_point
+prior to 1970-01-01, the value is0s
. Ift
represents a +time_point
during a leap second insertion, that full leap second is included +in the count. +
tai_clock