aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-catizo.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-01-23 09:51:38 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2012-01-23 09:51:38 +0100
commit3ffd18f16ccb5256aaf5d8e6a55fc8ad2d521085 (patch)
treeca1029610d8618cd4042b4926c54ebe6c3185af8 /gcc/ada/a-catizo.ads
parentce20f35b8f111d13784ac796abbf7dcc7720e9ae (diff)
downloadgcc-3ffd18f16ccb5256aaf5d8e6a55fc8ad2d521085.zip
gcc-3ffd18f16ccb5256aaf5d8e6a55fc8ad2d521085.tar.gz
gcc-3ffd18f16ccb5256aaf5d8e6a55fc8ad2d521085.tar.bz2
[multiple changes]
2012-01-23 Robert Dewar <dewar@adacore.com> * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter (pg,po,ps): Make sure each entry starts on new line. 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com> * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update the parameter profile of procedure localtime_tzoff and its associated comment. (Day_Of_Week): Do not treat the input date as historical with respect to time zones. (Split): Do not treat the input date as historical with respect to time zones. (Time_Of): Do not treat the input constituents as forming a historical date with respect to time zones. (UTC_Time_Offset): Add new formal parameter Is_Historic. Add local variable Flag. Update the call to localtime_tzoff. * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine. (UTC_Time_Offset (Time)): Update the call to Time_Zone_Operations.UTC_Time_Offset. * sysdep.c (__gnat_localtime_tzoff): Update parameter profile. Split the processing of offsets on Windows into two - one part of historic time stamps and the other for the current time. From-SVN: r183413
Diffstat (limited to 'gcc/ada/a-catizo.ads')
-rw-r--r--gcc/ada/a-catizo.ads9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ada/a-catizo.ads b/gcc/ada/a-catizo.ads
index 755325f..cbd952d 100644
--- a/gcc/ada/a-catizo.ads
+++ b/gcc/ada/a-catizo.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2005-2008, Free Software Foundation, Inc. --
+-- Copyright (C) 2005-2012, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. In accordance with the copyright of that document, you can freely --
@@ -26,7 +26,12 @@ package Ada.Calendar.Time_Zones is
Unknown_Zone_Error : exception;
- function UTC_Time_Offset (Date : Time := Clock) return Time_Offset;
+ function UTC_Time_Offset return Time_Offset;
+ -- Returns (in minutes), the difference between the implementation-defined
+ -- time zone of Calendar, and UTC time. If the time zone of the Calendar
+ -- implementation is unknown, raises Unknown_Zone_Error.
+
+ function UTC_Time_Offset (Date : Time) return 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.