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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.43.170 with SMTP id x10mr6770503igl.8.1446384643514; Sun, 01 Nov 2015 05:30:43 -0800 (PST) X-Received: by 10.182.87.229 with SMTP id bb5mr173170obb.3.1446384643490; Sun, 01 Nov 2015 05:30:43 -0800 (PST) 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!i2no1402529igv.0!news-out.google.com!fs1ni4818igb.0!nntp.google.com!i2no2066702igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 1 Nov 2015 05:30:43 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.99.64.182; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 83.99.64.182 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: A few questions From: Laurent Injection-Date: Sun, 01 Nov 2015 13:30:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28158 Date: 2015-11-01T05:30:43-08:00 List-Id: On Sunday, 1 November 2015 01:25:22 UTC+1, Jeffrey R. Carter wrote: > I'm not aware of any such pkg. On the other hand, I'm not sure you need i= t. Do > you really need to store all the dates in the range? You could process th= e file > for date D, then the file for date D + 1, ..., until you have processed a= ll the > desired files. I don't think that I need to store them. It would allow me to use a simple = loop later on and hide the ugly things somewhere else. > Conceptually the idea of an operation >=20 > function "+" (Left : in Dates.Object; Right : in Integer) return Dates.Ob= ject; >=20 > makes sense; without knowing the details of the implementation of Dates.O= bject I > have no idea how easy it would be. For Ada.Calendar.Time, one would simpl= y add > Right * Ada.Calendar.Day_Duration'Last. Sounds like a good idea.=20 I am actually reinventing the wheel because most of the functionality alrea= dy is in the Calendar package. I tried to understand how this package works= but there are few intermediate steps which I don't get. IE: Time_Rep? And = there are others. They are probably required for managing one special probl= em which happens once a century. At least I will perhaps learn why the package has been designed like this. Thanks