This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r111072 - /trunk/gcc/ada/g-catiio.adb
- From: charlet at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 15 Feb 2006 09:40:43 -0000
- Subject: r111072 - /trunk/gcc/ada/g-catiio.adb
Author: charlet
Date: Wed Feb 15 09:40:43 2006
New Revision: 111072
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111072
Log:
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.
Modified:
trunk/gcc/ada/g-catiio.adb