]>
Commit | Line | Data |
---|---|---|
6e451134 HK |
1 | ------------------------------------------------------------------------------ |
2 | -- -- | |
3 | -- GNAT RUN-TIME COMPONENTS -- | |
4 | -- -- | |
5 | -- A D A . C A L E N D A R . T I M E _ Z O N E S -- | |
6 | -- -- | |
7 | -- S p e c -- | |
8 | -- -- | |
6e451134 | 9 | -- This specification is derived from the Ada Reference Manual for use with -- |
f53f9dd7 RD |
10 | -- GNAT. In accordance with the copyright of that document, you can freely -- |
11 | -- copy and modify this specification, provided that if you redistribute a -- | |
12 | -- modified version, any changes that you have made are clearly indicated. -- | |
6e451134 HK |
13 | -- -- |
14 | ------------------------------------------------------------------------------ | |
15 | ||
42907632 HK |
16 | -- This package provides routines to determine the offset of dates to GMT. |
17 | -- It is defined in the Ada 2005 RM (9.6.1). | |
18 | ||
57f57ad1 | 19 | package Ada.Calendar.Time_Zones is |
6e451134 HK |
20 | |
21 | -- Time zone manipulation | |
22 | ||
23 | type Time_Offset is range -(28 * 60) .. 28 * 60; | |
24 | ||
25 | Unknown_Zone_Error : exception; | |
26 | ||
632d4a43 AC |
27 | function Local_Time_Offset (Date : Time := Clock) return Time_Offset; |
28 | function UTC_Time_Offset (Date : Time := Clock) return Time_Offset | |
29 | renames Local_Time_Offset; | |
f53f9dd7 RD |
30 | -- Returns (in minutes), the difference between the implementation-defined |
31 | -- time zone of Calendar, and UTC time, at the time Date. If the time zone | |
32 | -- of the Calendar implementation is unknown, raises Unknown_Zone_Error. | |
6e451134 HK |
33 | |
34 | end Ada.Calendar.Time_Zones; |