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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,950fad2e9e9717b3 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!f13g2000yqj.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Platform independent calendar Date: Sun, 7 Dec 2008 23:17:23 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <5pZ_k.470338$yE1.89079@attbi_s21> NNTP-Posting-Host: 62.49.19.209 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1228720644 6751 127.0.0.1 (8 Dec 2008 07:17:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 8 Dec 2008 07:17:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f13g2000yqj.googlegroups.com; posting-host=62.49.19.209; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:2931 Date: 2008-12-07T23:17:23-08:00 List-Id: On Dec 7, 11:56=A0pm, "Jeffrey R. Carter" wrote: > Mike H wrote: > > I am working (solo) on a signalling related application for a UK > > preserved railway. The system needs to be as near to totally platform > > independent as possible. As I see it, this rules out use of package > > Calendar. > > > Rather than re-invent a wheel, I would prefer to use a pre-existing > > solution and would be grateful for suggestions. > > You should probably use Ada.Real_Time rather than Ada.Calendar for such a= n > application. At least Ada.Calendar refers to externally-visible time (even though there may be problems related to eg time zones which are not likely to be a bother in Mike's application). I would have thought Real_Time had even less applicability in a distributed system than Calendar. Real_Time doesn't refer to real time such as you might read on your watch, it's related to hard real time control systems; are your signal requirements like that? In (older?) GNATs, Real_Time and Calendar were the same, I think this may have changed now (hope so, cos it meant that Real_Time might not be monotonic). If you never let the OS change its time sync, Calendar would do just fine.