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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0aecf9351d714ac X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.motzarella.org!motzarella.org!Colin_Paul_Gloster From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: C Macros and their equivalent in Ada Date: Tue, 9 Sep 2008 14:45:08 +0100 Organization: A noiseless patient Spider Message-ID: References: Reply-To: Colin Paul Gloster Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: feeder.motzarella.org U2FsdGVkX19SHbeFTquXzkCR4kP4BBCwcDFfTeVH624JL3QKCpu7oqdfRAmzCrOGYV1LCNGViptO1FD+v9efMgfdPz7pt16BPd0Ba/i7g+hwP9ogjsf6RQFEYQfya2MFtNwnT65QXLUT8is0blUS0FZaMNBrJ/Iz X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Tue, 9 Sep 2008 13:45:11 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX18JzCWkTT1g6YXuMFacHCXl7FttOsNj14RtYed1DglXAKHT0NAuXP2cHeoIMTKcXGY= Cancel-Lock: sha1:firJGhx0hwRO1DNG9uaLuG39Qys= X-X-Sender: Colin_Paul_Gloster@gian.fis.uc.pt Xref: g2news2.google.com comp.lang.ada:7686 Date: 2008-09-09T14:45:08+01:00 List-Id: On Tue, 9 Sep 2008, RasikaSrinivasan@gmail.com wrote: |-----------------------------------------------------------------| |"are there Ada equivalents of the C macros like : | | | |__DATE__, __TIME__ | | | |My searches have not revealed anything. have i missed any obvious| |pragmas?" | |-----------------------------------------------------------------| How about the function Ada.Calendar.Clock to get the current instant and passing that to the Date parameter of the Ada.Calendar.Split procedure (such that the date would be output to the other parameters)? Similarly you could use / and mod to get the time of day from Ada.Calendar.Seconds. See WWW.AdaIC.org/standards/05rm/html/RM-9-6.html#I3741 . Regards, Colin Paul Gloster