g-catiio.adb (Sec_Number): New type used to compute the number of seconds since 1...
authorPascal Obry <obry@adacore.com>
Wed, 15 Feb 2006 09:40:43 +0000 (10:40 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 15 Feb 2006 09:40:43 +0000 (10:40 +0100)
commit99c222911bb37a9103ebb2c46f3bb194b1548191
treeeb03e50c6e5a8bb096f991e32ddb4a782cc95d83
parent0c52d1f3443ac0e3ff508c243f83eecc051927d3
g-catiio.adb (Sec_Number): New type used to compute the number of seconds since 1-1-1970.

2006-02-13  Pascal Obry  <obry@adacore.com>

* g-catiio.adb (Sec_Number): New type used to compute the number of
seconds since 1-1-1970.
(Image) [Natural]: The parameter was an Integer, as we can't deal with
negative numbers (years, months...) it is better to have a Natural here.
Code clean-up.
(Image) [Number]: Change parameter from Long_Integer to Number.
(Image): Use Number type to compute the seconds since 1-1-1970 to fix an
overflow for dates past year 2038.

From-SVN: r111072
gcc/ada/g-catiio.adb