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 X-Google-Thread: 103376,878f0988ded38f50 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Passing Time via RCI Date: 1998/02/04 Message-ID: <6b9jsg$d34$1@peuplier.wanadoo.fr>#1/1 X-Deja-AN: 321963869 Content-Transfer-Encoding: quoted-printable References: <34D5D42A.35C7@lmco.com> <34D70B78.6503@lmco.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Adalog Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-02-04T00:00:00+00:00 List-Id: Marc A. Criley a =E9crit dans le message <34D70B78.6503@lmco.com>... >Samuel Tardieu wrote: >>=20 >> >>>>> "Marc" =3D=3D Marc A Criley writes: >>=20 >> Marc> Do I have to define my own time type? And write my own time >> Marc> utilities? Or do an Unchecked_Conversion from Time to some = byte >> Marc> array I define, pass it, then convert it back? >>=20 >> That's a bad idea to do an unchecked conversion to an array of bytes, >> since it won't work in heterogeneous environments (bytes won't get >> swapped in the case of an array, while they should if they represent = a >> time). You should probably define your own time type. > >Yeah, Unchecked_Conversion is way down on my list of palatable >solutions, though the network on which it'd be used is homogeneous. >It just strikes me as almost an oversight that I have all these Time >oriented utilities and I can't simply use them because there's no >straightforward way to pass time around. Another option I've got >is to Split the time, type convert the Year, Month, etc into my >own types, pass these, convert them back to Calendar.Year, etc., >and use Time_Of to rebuild the time. And still... > Why don't you simply pass it as a string ? All you need is a simple = package to convert times to/from strings. Everybody has such a package = (if you don't have it, write it quickly (or I'll send you mine), since = it is useful in many occasions).