Commit 2e8f7919 by Hristian Kirtchev Committed by Pierre-Marie de Rodat

[Ada] Add leap seconds for 2015 and 2016

The following patch updates Ada.Calendar and helper utility Xleaps to
include the leap seconds for years 2015 and 2016.

2018-12-03  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

	* libgnat/a-calend.adb: Update the number of leap seconds. Add
	the hard time values for year 2015 and 2016.

From-SVN: r266757
parent a3559241
2018-12-03 Hristian Kirtchev <kirtchev@adacore.com>
* libgnat/a-calend.adb: Update the number of leap seconds. Add
the hard time values for year 2015 and 2016.
2018-12-03 Gary Dismukes <dismukes@adacore.com> 2018-12-03 Gary Dismukes <dismukes@adacore.com>
* exp_ch3.adb, libgnarl/s-taasde.adb, libgnarl/s-taenca.adb, * exp_ch3.adb, libgnarl/s-taasde.adb, libgnarl/s-taenca.adb,
......
...@@ -38,7 +38,6 @@ with System.OS_Primitives; ...@@ -38,7 +38,6 @@ with System.OS_Primitives;
package body Ada.Calendar with package body Ada.Calendar with
SPARK_Mode => Off SPARK_Mode => Off
is is
-------------------------- --------------------------
-- Implementation Notes -- -- Implementation Notes --
-------------------------- --------------------------
...@@ -157,7 +156,7 @@ is ...@@ -157,7 +156,7 @@ is
Leap_Support : constant Boolean := (Flag = 1); Leap_Support : constant Boolean := (Flag = 1);
-- Flag to controls the usage of leap seconds in all Ada.Calendar routines -- Flag to controls the usage of leap seconds in all Ada.Calendar routines
Leap_Seconds_Count : constant Natural := 25; Leap_Seconds_Count : constant Natural := 27;
--------------------- ---------------------
-- Local Constants -- -- Local Constants --
...@@ -236,7 +235,9 @@ is ...@@ -236,7 +235,9 @@ is
-4765132779000000000, -4765132779000000000,
-4544207978000000000, -4544207978000000000,
-4449513577000000000, -4449513577000000000,
-4339180776000000000); -4339180776000000000,
-4244572775000000000,
-4197052774000000000);
--------- ---------
-- "+" -- -- "+" --
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment