-- The above flag controls the usage of leap seconds in all Ada.Calendar
-- routines.
- Leap_Seconds_Count : constant Natural := 23;
+ Leap_Seconds_Count : constant Natural := 24;
---------------------
-- Local Constants --
43271712190000000,
43744320200000000,
44218656210000000,
- 46427904220000000);
+ 46427904220000000,
+ 47374848230000000);
---------
-- "+" --
-- Step 3: Handle leap second occurrences
- if Leap_Sec then
- tm_sec := 60;
- else
- tm_sec := Second;
- end if;
+ tm_sec := (if Leap_Sec then 60 else Second);
end To_Struct_Tm;
------------------
else
-- Sub second extraction
- if Day_Secs > 0.0 then
- Int_Day_Secs := Integer (Day_Secs - 0.5);
- else
- Int_Day_Secs := Integer (Day_Secs);
- end if;
+ Int_Day_Secs :=
+ (if Day_Secs > 0.0
+ then Integer (Day_Secs - 0.5)
+ else Integer (Day_Secs));
H := Int_Day_Secs / 3_600;
Mi := (Int_Day_Secs / 60) mod 60;