comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Ada case-statement
Date: Thu, 15 Mar 2018 22:12:23 +0100
Date: 2018-03-15T22:12:23+01:00	[thread overview]
Message-ID: <p8enjn$hcb$1@dont-email.me> (raw)
In-Reply-To: <30fbf68e-b002-468d-9a8d-71cb457b0d03@googlegroups.com>

On 03/15/2018 07:41 PM, Shark8 wrote:
> On Thursday, March 15, 2018 at 11:01:28 AM UTC-6, Dmitry A. Kazakov wrote:
> 
> Given the DOD origins of Ada, I'm rather surprised the native date format isn't "DDMMMYY" / "DD-MMM-YY[YY]" -- proper "military date" which is unambiguous (something you need for serialization/de-serialization) -- and perhaps have an optional "ISO 8601" child-package of Calendar w/ the 95 revision.

Ada 83 didn't have a "date format". String representations of dates were left up 
to the programmer. What it did have was Calendar.Time, which could be created 
from Year, Month, and Day numbers, each clearly labeled with what it 
represented, or queried/decomposed to obtain Year, Month, and Day numbers, again 
clearly labeled.

For the early 1980s, it was somewhat prescient in avoiding 2-digit years, 
something I recall liking when I first encountered the language.

-- 
Jeff Carter
"Beyond 100,000 lines of code you
should probably be coding in Ada."
P. J. Plauger
26

  reply	other threads:[~2018-03-15 21:12 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14 17:35 Ada case-statement Stephen Davies
2018-03-14 17:49 ` Dmitry A. Kazakov
2018-03-15  0:57   ` Robert I. Eachus
2018-03-15  3:10     ` Dan'l Miller
2018-03-15  5:54       ` J-P. Rosen
2018-03-15  7:56         ` Niklas Holsti
2018-03-15 12:21           ` Dan'l Miller
2018-03-15 17:22             ` Mill processor (Was: Re: Ada case-statement) Niklas Holsti
2018-03-15 21:50     ` Ada case-statement Randy Brukardt
2018-03-14 22:22 ` Mehdi Saada
2018-03-14 23:16 ` Randy Brukardt
2018-03-15  5:04   ` gautier_niouzes
2018-03-15  7:50   ` Jacob Sparre Andersen
2018-03-15 22:05     ` Randy Brukardt
2018-03-15  8:37   ` Dmitry A. Kazakov
2018-03-15 22:20     ` Randy Brukardt
2018-03-16  8:54       ` Dmitry A. Kazakov
2018-03-16 23:49         ` Randy Brukardt
2018-03-17  7:59           ` Dmitry A. Kazakov
2018-03-15 15:37   ` Stephen Davies
2018-03-15 16:33     ` J-P. Rosen
2018-03-15 17:01       ` Dmitry A. Kazakov
2018-03-15 18:41         ` Shark8
2018-03-15 21:12           ` Jeffrey R. Carter [this message]
2018-03-18  5:41             ` Robert I. Eachus
2018-03-18  6:57               ` Spiros Bousbouras
2018-03-18  9:17               ` Jeffrey R. Carter
2018-03-18 12:53                 ` Simon Wright
2018-03-15 18:50     ` Jere
2018-03-15 20:40       ` Anh Vo
2018-03-15 22:24     ` Randy Brukardt
2018-03-16  9:53       ` Stephen Davies
2018-04-03 17:56   ` marciant
replies disabled

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