comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: calander package
Date: Tue, 13 Mar 2001 14:50:15 -0500
Date: 2001-03-13T19:50:43+00:00	[thread overview]
Message-ID: <98ltmj$90q$1@nh.pace.co.uk> (raw)
In-Reply-To: %%tr6.2979$54.3285@www.newsranger.com


Near trivial if all you want is MM/DD/YY or something similar. Still, it
seems a shame that Ada.Calendar didn't provide one or more functions to
return the date/time as a string - just because it is frequently needed and
getting it from the language environment would imply a certain amount of
consistency.

I've built my own to generate the date/time in a whole variety of formats
because on any number of occasions you might need it different ways. Maybe I
should revisit this code with the goal of consolidating it down to fewer
routines with more options? A dozen or so formats suggests an enumeral and
the rest would be some flavor of "What character(s) do you like for
separators?" and "Did you want the current time or are you going to give me
a time of your own?"

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/


"Ted Dennison" <dennison@telepath.com> wrote in message
news:%%tr6.2979$54.3285@www.newsranger.com...
> In article <98lis0$56j$1@nh.pace.co.uk>, Marin David Condic says...
> Well, with that caveat, I'll mention that the 2.0 release of the SETI@Home
> service just happens to have a routine in it that does exactly that (for
> date/time-stamping log entries). It'd probably be just as easy for most
folks to
> write their own, though.
>






  reply	other threads:[~2001-03-13 19:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-13  0:04 calander package arcele
2001-03-13 14:24 ` Marin David Condic
2001-03-14 11:52   ` Mario Amado Alves
2001-03-13 15:52 ` Ted Dennison
2001-03-13 16:45   ` Marin David Condic
2001-03-13 18:52     ` Ted Dennison
2001-03-13 19:50       ` Marin David Condic [this message]
2001-03-13 21:47         ` Randy Brukardt
2001-03-13 22:32           ` Marin David Condic
2001-03-14  2:04           ` Vincent Marciante
2001-03-14 14:47             ` Marin David Condic
2001-03-15  0:23             ` Jeffrey Carter
2001-03-15 17:45               ` Marin David Condic
2001-03-16 16:54               ` Robert A Duff
2001-03-14  0:51         ` tmoran
2001-03-14 15:21           ` Marin David Condic
2001-03-15  1:39             ` Randy Brukardt
2001-03-15 17:55               ` Marin David Condic
2001-03-16 14:50                 ` Planned increment for package Datetime Mario Amado Alves
2001-03-14  2:19       ` calander package Jeffrey Carter
2001-03-14  8:33 ` Pascal Obry
replies disabled

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