Mercurial > hg > CbC > CbC_gcc
diff gcc/ada/libgnat/a-calend.ads @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/ada/libgnat/a-calend.ads Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/ada/libgnat/a-calend.ads Thu Oct 25 07:37:49 2018 +0900 @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2017, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2018, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- @@ -35,9 +35,7 @@ package Ada.Calendar with SPARK_Mode, - Abstract_State => (Clock_Time with Synchronous, - External => (Async_Readers, - Async_Writers)), + Abstract_State => (Clock_Time with Synchronous), Initializes => Clock_Time is @@ -223,6 +221,11 @@ -- with overloading ambiguities in the body if we tried to use Time as an -- internal computational type. + function Epoch_Offset return Time_Rep; + pragma Inline (Epoch_Offset); + -- Return the difference between 2150-1-1 UTC and 1970-1-1 UTC expressed in + -- nanoseconds. Note that year 2100 is non-leap. + Days_In_Month : constant array (Month_Number) of Day_Number := (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); -- Days in month for non-leap year, leap year case is adjusted in code