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=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:2297:: with SMTP id o23mr5834099qkh.405.1630825003991; Sat, 04 Sep 2021 23:56:43 -0700 (PDT) X-Received: by 2002:a25:af81:: with SMTP id g1mr8514146ybh.457.1630825003849; Sat, 04 Sep 2021 23:56:43 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 4 Sep 2021 23:56:43 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 84.209.88.37 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Trivial question: how to avoid confusing sec, min, hour and day in a program? From: reinert Injection-Date: Sun, 05 Sep 2021 06:56:43 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62636 List-Id: Anybody with good ideas on how (in a simplest possible way) to avoid to con= fuse between representation of time as seconds, minutes, hours and days in = an Ada program? Standardize on internal representation of time as seconds = (Float)? I will delay to use complex approaches for physical units. It is somewhere in my program natural/human to think in seconds whereas mi= nutes or hours feels more natural at other places (so the numerics is "huma= n"). Example to illustrate: heart rate is "natural" to give in number per m= inute (not in number per second, hour or day). Time on work is normally giv= en by hours (not seconds) etc.. reinert