comp.lang.ada
 help / color / mirror / Atom feed
From: randhol+nospam@pvv.org (Preben Randhol)
Subject: Ada Calendar oddity <was Re: C date package>
Date: 2000/05/10
Date: 2000-05-10T13:17:46+00:00	[thread overview]
Message-ID: <slrn8hioca.101.randhol+nospam@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: 8fahfv$mgt$1@nnrp1.deja.com


I was looking yesterday in the RM and found that Year in the
Ada.Calendar was defined until 2099 only. I have search on deja, but I
cannot find any reason for it to be defined only to 2099.

Some would claim that 2099 is a long way in the future, but I think it
isn't in all respects.

An example: If I were to make a program for issuing drivers licenses
here in Norway there would be a problem. Well not immediately but in
only 18 years.

The reason is that driver's licenses expires as you get 100 years old. So
mine expires in 2073.

If one wanted to use the Year type in Ada.Calendar for birthday and
expiration date, one would get an constraint error when one issued
drivers licences for these born this year. Wouldn't one?

I may have missed some thing important when I speedily "read" the
Ada.Calendar, but this seems a bit odd to me (the upper limit that is).

-- 
Preben Randhol -- [randhol@pvv.org] -- <http://www.pvv.org/~randhol/>
         "Det eneste trygge stedet i verden er inne i en fortelling."
                                                      -- Athol Fugard




  parent reply	other threads:[~2000-05-10  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l0313030eb53d1408aee7@[144.205.16.58]>
2000-05-09  0:00 ` C date package Geoff Bull
2000-05-09  0:00   ` Geoff Bull
2000-05-09  0:00     ` Robert Dewar
2000-05-10  0:00       ` Geoff Bull
2000-05-10  0:00         ` Robert Dewar
2000-05-10  0:00           ` Ken Garlington
2000-05-10  0:00             ` Geoff Bull
2000-05-10  0:00           ` Geoff Bull
2000-05-10  0:00           ` Preben Randhol [this message]
2000-05-10  0:00             ` Ada Calendar oddity <was Re: C date package> Robert A Duff
2000-05-10  0:00               ` Preben Randhol
2000-05-10  0:00                 ` Charles Hixson
2000-05-11  0:00                   ` Geoff Bull
2000-05-11  0:00                     ` Charles Hixson
2000-05-12  0:00                       ` Geoff Bull
2000-05-17  0:00               ` Robert I. Eachus
2000-05-19  0:00                 ` Geoff Bull
2000-05-19  0:00                   ` Robert I. Eachus
2000-05-21  0:00                     ` Robert Dewar
2000-05-21  0:00                   ` Robert Dewar
     [not found]                     ` <392869F0.D88F056A@acenet.com.au>
2000-05-22  0:00                       ` Tarjei Tj�stheim Jensen
2000-05-27  0:00                         ` Reinert Korsnes
2000-05-27  0:00                           ` Tarjei Tj�stheim Jensen
2000-06-03  0:00                       ` Robert I. Eachus
2000-05-10  0:00             ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Charles Hixson
2000-05-11  0:00                 ` Tarjei Tj�stheim Jensen
2000-05-12  0:00                   ` Charles Hixson
2000-05-12  0:00                     ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Geoff Bull
2000-05-11  0:00                 ` Gautier
2000-05-12  0:00                   ` Geoff Bull
2000-05-12  0:00                     ` Gautier
2000-05-11  0:00                       ` Al Christians
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox