From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: Trivial question: how to avoid confusing sec, min, hour and day in a program? Newsgroups: comp.lang.ada References: From: ldries46 Date: Mon, 6 Sep 2021 16:13:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Message-ID: Organization: KPN B.V. Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe001.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail Injection-Date: Mon, 06 Sep 2021 16:13:37 +0200 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" X-Received-Bytes: 2544 Xref: reader02.eternal-september.org comp.lang.ada:62658 List-Id: Op 6-9-2021 om 15:43 schreef J-P. Rosen: > Le 06/09/2021 à 15:06, ldries46 a écrit : >>> If calculations are involved, they are performed in SI, because >>> otherwise you need factors in all formulae. And SI means no mm, but >>> m, no km/h, but m/s etc. >> Sorry but It should perhaps be so but it is not. Programs made >> primarily for Aircraft engineering (f.i. CATIA 5/6) do use mm and >> your velocity clock in your car shows km/h and it registers the >> distance in km (in England and the USA mph and miles) In aircraft the >> Speed is often still measured in Knots (Nautical miles per hour). >> Maybe French aircraft will possibly show km/h. It is to hazardous to >> change this > > Do not confuse computations with input/output. I agree with Dmitry, > all computations should be performed in SI, with a (user selectable) > choice of units for input and display. > What I tried to say is just what J-P Rosen says. But in my experience (41 years in aircraft engineering) that is not so, every time you have to realise what the system your working with and you are forced to even use systems parallel. One of the points I made the mechanical engineering which often uses cm has standard profiles using mm HE110B is 100mm high. That is the reason that I ask for a package which solves this problem for once and always and still gives the user the possibility to use all kind of dimesions