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,2ad75eb44c73d85f X-Google-Attributes: gid103376,public From: Jerome Desquilbet Subject: Re: simple time display Date: 1997/01/16 Message-ID: <32DE3D16.167E@Rational.COM>#1/1 X-Deja-AN: 210488326 references: <32DCD770.60BB29B1@3wis.nl> to: Noam Kloos content-type: text/plain; charset=us-ascii organization: Rational Software Corporation in (the) SQY, France mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha) Date: 1997-01-16T00:00:00+00:00 List-Id: > package durationIO is new ada.text_io.decimal_io(DURATION); > use durationIO; > > [...] cannot instantiate durationIO because it wants a > decimal type for its parameter Num. > > What whould be the simplest way to just pprint the current time in > ada? with Ada.Text_Io; procedure Test is package Duration_Io is new Ada.Text_Io.Fixed_Io (Duration); D : Duration := Duration'Small; begin Ada.Text_Io.Put_Line (Duration'Image (D)); Duration_Io.Put (D); Ada.Text_Io.New_Line; end Test; ______________________________________________________________________ Jerome Desquilbet jDesquilbet@Rational.COM ' ^