aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/a-catizo.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2020-01-31 09:18:37 -0500
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-05 08:17:41 -0400
commit632d4a43d7ab74554898509d7a99edccf09819cc (patch)
treef6bade52bc144c9ad6d50e84a7cb111d99883148 /gcc/ada/libgnat/a-catizo.ads
parentbec136971a7a45de978c398b5ecaaea9d73eb501 (diff)
downloadgcc-632d4a43d7ab74554898509d7a99edccf09819cc.zip
gcc-632d4a43d7ab74554898509d7a99edccf09819cc.tar.gz
gcc-632d4a43d7ab74554898509d7a99edccf09819cc.tar.bz2
[Ada] AI12-0336 Meaning of Time_Offset
2020-06-05 Arnaud Charlet <charlet@adacore.com> gcc/ada/ * libgnat/a-calfor.ads, libgnat/a-catizo.ads, libgnat/a-catizo.adb (Local_Time_Offset, Local_Image): New. (UTC_Time_Offset): Now a renaming of Local_Time_Offset.
Diffstat (limited to 'gcc/ada/libgnat/a-catizo.ads')
-rw-r--r--gcc/ada/libgnat/a-catizo.ads8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/libgnat/a-catizo.ads b/gcc/ada/libgnat/a-catizo.ads
index 5f55869..59ac7ad 100644
--- a/gcc/ada/libgnat/a-catizo.ads
+++ b/gcc/ada/libgnat/a-catizo.ads
@@ -16,7 +16,9 @@
-- This package provides routines to determine the offset of dates to GMT.
-- It is defined in the Ada 2005 RM (9.6.1).
-package Ada.Calendar.Time_Zones is
+package Ada.Calendar.Time_Zones
+-- with Nonblocking
+is
-- Time zone manipulation
@@ -24,7 +26,9 @@ package Ada.Calendar.Time_Zones is
Unknown_Zone_Error : exception;
- function UTC_Time_Offset (Date : Time := Clock) return Time_Offset;
+ function Local_Time_Offset (Date : Time := Clock) return Time_Offset;
+ function UTC_Time_Offset (Date : Time := Clock) return Time_Offset
+ renames Local_Time_Offset;
-- Returns (in minutes), the difference between the implementation-defined
-- time zone of Calendar, and UTC time, at the time Date. If the time zone
-- of the Calendar implementation is unknown, raises Unknown_Zone_Error.