From: Jeffrey Carter <spam@spam.com>
Subject: Re: integer input from text file
Date: Thu, 27 Mar 2003 20:19:36 GMT
Date: 2003-03-27T20:19:36+00:00 [thread overview]
Message-ID: <3E835CC4.3010201@spam.com> (raw)
In-Reply-To: 363a9d17.0303270535.427f82e@posting.google.com
dumur wrote:
> My problem is that I got to read a time string from a text file. It is
> in the form 12:34:45 Hour:Minute:Second. I want to get each part one
> by one with
12:34:45 is equivalent to 12#34#45, that is, the base-12 number 34 (40
decimal) followed immediately by the base-10 number 45. If you have a
24-hour clock, hours of 00-01 and 17-23 will cause errors because Ada
only does bases of 2-16 automatically.
You probably ought to read the whole string and parse it yourself.
--
Jeff Carter
"Now look, Col. Batguano, if that really is your name."
Dr. Strangelove
next prev parent reply other threads:[~2003-03-27 20:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-27 13:35 integer input from text file dumur
2003-03-27 18:41 ` Randy Brukardt
2003-03-27 20:19 ` Jeffrey Carter [this message]
2003-03-28 6:11 ` dumur
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox