comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: calander package - Proposal for dates
Date: Mon, 19 Mar 2001 11:07:36 -0500
Date: 2001-03-19T16:07:55+00:00	[thread overview]
Message-ID: <995asr$m34$1@nh.pace.co.uk> (raw)
In-Reply-To: 3AB2D1EF.B2CA8117@acm.org

Well, the problem is this: If you *don't* want to limit things to some fixed
set of formats, you're only going to invent some programming language for
"rolling your own". Maybe it would be a tad easier than simply using Ada
features, but ultimately, it will be some kind of programming task. At that
point, you have to ask: "Why not just rely on Ada to do it?"

I've coded a bunch of date/time-to-string formatting routines with Ada and
they are generally pretty small. If you were to provide some flavor of
'Image for date/time pieces, it might make things a bit more efficient, but
I don't know that it would be big enough to make much difference. (You can
already get the 'Image of the pieces after you convert the time to numeric
pieces. Seems like at best you can eliminate one step.)

OTOH, if the package Calendar (or some child) had some Image functions that
gave you back strings of the form "January" and "1941" and such, it might be
enough of a language extension to eliminate any further need for additional
packages. Hmmmmmmmmm...............

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/



"Jeffrey Carter" <jrcarter@acm.org> wrote in message
news:3AB2D1EF.B2CA8117@acm.org...
> This proposal limits you to a fixed set of formats. If the format you
> need is not in that set, you are out of luck.
>
> I'm toying with providing image functions for the individual parts of a
> date or time. This would allow the client to combine them in any manner
> desired. I'm currently chewing on what to do with the am/pm part of a
> 12-hour hour. When I come up with something usable I'll post it here for
> comment.
>
> --
> Jeff Carter
> "I waggle my private parts at your aunties."
> Monty Python & the Holy Grail





  parent reply	other threads:[~2001-03-19 16:07 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-16  8:49 calander package - Proposal for dates Christoph Grein
2001-03-16 17:21 ` Robert A Duff
2001-03-17  2:55 ` Jeffrey Carter
2001-03-17 10:16   ` Pascal Obry
2001-03-17 18:11     ` Ehud Lamm
2001-03-19 14:26       ` Ted Dennison
2001-03-19 17:30         ` Ehud Lamm
2001-03-20  6:30       ` Wilhelm Spickermann
2001-03-20 11:45         ` Martin Dowie
2001-03-20 13:48           ` Wilhelm Spickermann
2001-03-21 13:37             ` John English
2001-03-20 14:15           ` Marin David Condic
2001-03-20 15:25           ` Ted Dennison
2001-03-21  8:11             ` calendar,day_name Peter Hermann
2001-03-19 15:52     ` GNAT.Calendar Mario Amado Alves
2001-03-19 15:54       ` GNAT.Calendar Florian Weimer
2001-03-19 22:03     ` calander package - Proposal for dates Jeffrey Carter
2001-03-20 18:34       ` Pascal Obry
2001-03-20 23:01         ` Jeffrey Carter
2001-03-21  8:17           ` Pascal Obry
2001-03-19 16:07   ` Marin David Condic [this message]
2001-03-19 17:24     ` Ted Dennison
2001-03-19 17:34       ` Ehud Lamm
     [not found] <200103160849.JAA00680@bulgaria.otn.eurocopter.de>
2001-03-16  9:31 ` Hans-Olof Danielsson
2001-03-17 20:18   ` Georg Bauhaus
2001-03-24  6:27   ` David Thompson
     [not found] <000201c0ae3b$b27cca00$039697d4@d1>
2001-03-16 23:46 ` Robert C. Leif, Ph.D.
  -- strict thread matches above, loose matches on Subject: below --
2001-03-19  6:50 Christoph Grein
replies disabled

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