URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
281 |
jeremybenn |
------------------------------------------------------------------------------
|
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 |
|
|
-- --
|
9 |
|
|
-- Copyright (C) 2005-2008, Free Software Foundation, Inc. --
|
10 |
|
|
-- --
|
11 |
|
|
-- This specification is derived from the Ada Reference Manual for use with --
|
12 |
|
|
-- GNAT. In accordance with the copyright of that document, you can freely --
|
13 |
|
|
-- copy and modify this specification, provided that if you redistribute a --
|
14 |
|
|
-- modified version, any changes that you have made are clearly indicated. --
|
15 |
|
|
-- --
|
16 |
|
|
------------------------------------------------------------------------------
|
17 |
|
|
|
18 |
|
|
-- This package provides routines to determine the offset of dates to GMT.
|
19 |
|
|
-- It is defined in the Ada 2005 RM (9.6.1).
|
20 |
|
|
|
21 |
|
|
package Ada.Calendar.Time_Zones is
|
22 |
|
|
|
23 |
|
|
-- Time zone manipulation
|
24 |
|
|
|
25 |
|
|
type Time_Offset is range -(28 * 60) .. 28 * 60;
|
26 |
|
|
|
27 |
|
|
Unknown_Zone_Error : exception;
|
28 |
|
|
|
29 |
|
|
function UTC_Time_Offset (Date : Time := Clock) return Time_Offset;
|
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.
|
33 |
|
|
|
34 |
|
|
end Ada.Calendar.Time_Zones;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.