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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e21d0aa0ab569b2a X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: System time and date Date: 1997/03/17 Message-ID: <5gk312$of8@top.mitre.org>#1/1 X-Deja-AN: 226232130 References: <1997Mar17.105940.1@ualr.edu> Organization: The MITRE Corporation Newsgroups: comp.lang.ada Date: 1997-03-17T00:00:00+00:00 List-Id: > I apologize but ... am still having problems getting the system > time /date to output to the screen. A young struggling ADA > programmer would deeply appreciate the help. A sample of code > would be a real help or just point me in a direction for > more reading. Any help or suggestions would be appreciated. Sorry you are having trouble, and I agree with you that the correct solution is to look at samples of code. I am willing to post code for you. In addition, millions of lines of Ada code are on-line in the PAL and other ftp and web sites. There are also a lot of Ada text books. But I need to know what your problem is. For example, have you never programmed before, and do not know that you are looking for a command like text_io.put_line? Or are you a programmer and do not know how to spell the typecast from type time to type string? Or are you without an on-line manual so you do not have the spec for package calendar and package text_io? Your message does not tell us what you need. If a line of code at the boundary of the text_io and calendar packages would truly satisfy your desire, that information will be given to you. However, if your desire is to program that line of code your self, download the Ada 95 manual from the web, for example at ftp://cs.nyu.edu/pub/gnat. Then read sections 9.6 (12), 9.6 (14), 3.5 (36), and A.10.7(21). On the other hand, if your question is not how to use package calendar, but to call a particular operating system directory to ask that operating systems time, for those instances when there are multiple clocks and package calendar reads the wrong clock, then you need to reveal the operating system you are asking about, because the answer is different on different systems.