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,a492bec5c8b1db2c X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Calendar Clock! Date: 1998/06/17 Message-ID: #1/1 X-Deja-AN: 363532056 References: <01bd9987$0ad1d3c0$cfcb60cf@vlcvqqui> Organization: Network Intensive Newsgroups: comp.lang.ada Date: 1998-06-17T00:00:00+00:00 List-Id: "Yanick Hudon" writes: > I would like to know if there is a way to get the date of the system with > the package Ada.Calendar like we can do in C??? Package Calendar _does_ return the date. declare Year : Year_Number; Month : Month_Number; Day : Day_Number; Seconds : Day_Duration; begin Split (Date => Clock, Year => Year, Month => Month, Day => Day, Seconds => Seconds); end; I'm not clear if you meant just "get the date," or if you meant, "get a time string whose format is like that in C." If you meant the former, then Calendar.Clock does the trick. If you meant the latter, then there are utilities you can use to create a string representation of time, in various formats. Check the PAL. Check DejaNews too - I think this question was asked recently, and someone named an actual unit in the PAL.