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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 01 Nov 2015 18:41:50 -0600 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: A few questions Date: Sun, 01 Nov 2015 19:41:50 -0500 Organization: IISS Elusive Unicorn Message-ID: References: <86611l7fel.fsf@stephe-leake.org> <5cb53e97-658b-464e-b3e8-88d0d0c2cf17@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.68.178.61 X-Trace: sv3-sObJzv48dh4mgtlTNWuxe8NPlDE+tdSaO04kMrRaoqsueVQhY0gvz3WgaVr8xfjla/O3jGxQWV0pEZM!H25ygpJIEQa93yJJb7BqLirlQVsn0BvuwZVg5X2p2gjmKk85KLbClPUPYYO2NyCR72pt7zTtGvTf!FaKfHegkyDAzSjRG+W+FhkKi488= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1938 Xref: news.eternal-september.org comp.lang.ada:28172 Date: 2015-11-01T19:41:50-05:00 List-Id: On Sun, 1 Nov 2015 10:53:31 -0800 (PST), Laurent declaimed the following: > >Hm none. Just would need the possibility to use it in a loop for the 'Range. But hey I am a noob so I quite often asks silly questions :) And the simplest is probably to have some procedure/function that converts between a calendar (day month year) and some cardinal/integer referenced to some epoch date. So your range becomes a range of cardinal values. Which puts us back to JD, MJD (you probably don't want JD since xxxx.0 is NOON, and midnight is xxxx.5), C/UNIX seconds since some epoch based on some date in 1970, etc. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/