comparison gcc/ada/libgnat/a-calcon.ads @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
4 -- -- 4 -- --
5 -- A D A . C A L E N D A R . C O N V E R S I O N S -- 5 -- A D A . C A L E N D A R . C O N V E R S I O N S --
6 -- -- 6 -- --
7 -- S p e c -- 7 -- S p e c --
8 -- -- 8 -- --
9 -- Copyright (C) 2008-2017, Free Software Foundation, Inc. -- 9 -- Copyright (C) 2008-2018, Free Software Foundation, Inc. --
10 -- -- 10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under -- 11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- -- 12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- 13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
31 31
32 -- This package provides various routines for conversion between Ada and Unix 32 -- This package provides various routines for conversion between Ada and Unix
33 -- time models - Time, Duration, struct tm and struct timespec. 33 -- time models - Time, Duration, struct tm and struct timespec.
34 34
35 with Interfaces.C; 35 with Interfaces.C;
36 with Interfaces.C.Extensions;
36 37
37 package Ada.Calendar.Conversions is 38 package Ada.Calendar.Conversions is
38 39
39 function To_Ada_Time (Unix_Time : Interfaces.C.long) return Time; 40 function To_Ada_Time (Unix_Time : Interfaces.C.long) return Time;
40 -- Convert a time value represented as number of seconds since the 41 -- Convert a time value represented as number of seconds since the
108 -- Convert a time value represented as number of time units since the Ada 109 -- Convert a time value represented as number of time units since the Ada
109 -- implementation-defined Epoch to a value relative to the Unix Epoch. The 110 -- implementation-defined Epoch to a value relative to the Unix Epoch. The
110 -- units of the result are seconds. Raises Time_Error if the result cannot 111 -- units of the result are seconds. Raises Time_Error if the result cannot
111 -- fit into a Time value. 112 -- fit into a Time value.
112 113
114 function To_Unix_Nano_Time
115 (Ada_Time : Time) return Interfaces.C.Extensions.long_long;
116 -- Convert a time value represented as number of time units since the Ada
117 -- implementation-defined Epoch to a value relative to the Unix Epoch. The
118 -- units of the result are nanoseconds. Raises Time_Error if the result
119 -- cannot fit into a Time value.
120
113 end Ada.Calendar.Conversions; 121 end Ada.Calendar.Conversions;