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!l42g2000yqe.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Platform independent calendar Date: Sun, 7 Dec 2008 10:06:34 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <_vT_k.6630$So1.3168@newsfe01.ams2> 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 1228673195 3227 127.0.0.1 (7 Dec 2008 18:06:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 7 Dec 2008 18:06:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l42g2000yqe.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:2922 Date: 2008-12-07T10:06:34-08:00 List-Id: On Dec 7, 5:14=A0pm, Per Sandberg wrote: > ???? > The Calendar package is the same all known platform as far as i know > since that is defined by the standard. > But if you by platform independent mean using the same binary > representation for data (to be sent between machines) which is a > complete different story. > I would use XML as data carrier and use some platform independent middle > ware for transmitting data. Sounds as though you'll need a mechanism so that all the computers involved agree what the time is. We used (S)NTP (broadcast, though that's not necessary) and a package modelled on Ada.Calendar, where the underlying time is the particular computer's Ada.Calendar.Clock but there's a private offset which brings the time from/to the common system time whenever a time value goes on/off board. Update the offset on receipt of (S)NTP update. Does depend on UDP networking, of course. See https://sourceforge.net/project/showfiles.php?group_id=3D135558&package_id= =3D168849 for an Ada implementation of SNTP - uses GNAT.Sockets