CVS difference for ai12s/ai12-0336-1.txt
--- ai12s/ai12-0336-1.txt 2019/07/19 04:34:42 1.5
+++ ai12s/ai12-0336-1.txt 2019/12/03 03:56:22 1.6
@@ -1,4 +1,4 @@
-!standard 9.6.1(6/2) 19-07-03 AI12-0336-1/03
+!standard 9.6.1(6/2) 19-12-02 AI12-0336-1/04
!standard 9.6.1(35/2)
!standard 9.6.1(40/2)
!standard 9.6.1(41/2)
@@ -182,8 +182,7 @@
Time_Zone : Time_Zones.Time_Offset := 0) @b<return> String;>
@dinst
@xcode< @b<function> Local_Image (Date : Time;
- Include_Time_Fraction : Boolean := False;
- Time_Zone : Time_Zones.Time_Offset := 0) @b<return> String @b<is>
+ Include_Time_Fraction : Boolean := False) @b<return> String @b<is>
(Image (Date, Include_Time_Fraction, Local_Time_Offset (Date)));>
!corrigendum 9.6.1(40/2)
@@ -1218,5 +1217,40 @@
>depends on how often Clock is called vs. the operators.)
I wonder if anyone's done any real analysis of clock vs. operators usage rates.
+
+***************************************************************
+
+From: Jean-Pierre Rosen
+Sent: Thursday, November 28, 2019 8:19 AM
+
+I just came across this declaration in Ada.Calendar.Formatting:
+
+function Local_Image (Date : Time;
+ Include_Time_Fraction : Boolean := False;
+ Time_Zone : Time_Zones.Time_Offset := 0) return String is
+ (Image (Date, Include_Time_Fraction, Local_Time_Offset (Date)));
+
+The Time_Zone parameter is not included in the implementation, and this
+function seems to be intended to remove the nuisance of specifying the time
+zone. Cut and paste error?
+
+***************************************************************
+
+From: Tucker Taft
+Sent: Monday, December 2, 2019 7:17 AM
+
+I would agree that the Time_Zone formal parameter should be omitted from the
+profile of Local_Image, since it is never used and is misleading since it
+implies that Local_Image is showing UTC time, when it is in fact showing the
+time in Ada.Calendar's time-zone.
+
+***************************************************************
+
+From: Randy Brukardt
+Sent: Monday, December 2, 2019 9:41 PM
+
+It *is* omitted from the AI's !wording section, but the !corrigendum section
+and the draft RM include it. Almost certainly a cut-and-paste error (doubled,
+so I didn't detect it using Pascal's matching tools).
***************************************************************
Questions? Ask the ACAA Technical Agent