From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dd168cddd95805ff X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-27 12:19:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3E835CC4.3010201@spam.com> From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: integer input from text file References: <363a9d17.0303270535.427f82e@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 27 Mar 2003 20:19:36 GMT NNTP-Posting-Host: 63.184.1.202 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1048796376 63.184.1.202 (Thu, 27 Mar 2003 12:19:36 PST) NNTP-Posting-Date: Thu, 27 Mar 2003 12:19:36 PST Xref: archiver1.google.com comp.lang.ada:35771 Date: 2003-03-27T20:19:36+00:00 List-Id: 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