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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,59c3b3f9911c9191 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.177.12 with SMTP id bg12mr1413993qab.0.1343315014005; Thu, 26 Jul 2012 08:03:34 -0700 (PDT) Received: by 10.66.74.41 with SMTP id q9mr1662278pav.41.1343314122566; Thu, 26 Jul 2012 07:48:42 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no3343282qas.0!news-out.google.com!b9ni64888770pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!border6.newsrouter.astraweb.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: erlo.haugen@gmail.com Newsgroups: comp.lang.ada Subject: Re: Ada.Calendar and NTP (and Unix Epoch) Date: Tue, 24 Jul 2012 00:24:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <60c9c92b-280b-4178-a410-2bc8756c6b5e@googlegroups.com> References: <500dc548$0$2936$f40e02c5@shockwave.dk.telia.net> <18893cca-baa2-4930-bfb4-4c4f7eb7e983@googlegroups.com> NNTP-Posting-Host: 193.163.1.105 Mime-Version: 1.0 X-Trace: posting.google.com 1343115001 24212 127.0.0.1 (24 Jul 2012 07:30:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Jul 2012 07:30:01 +0000 (UTC) In-Reply-To: <18893cca-baa2-4930-bfb4-4c4f7eb7e983@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.163.1.105; posting-account=N7skygoAAAA1XsML8HGZssZ0aoLQa6Br User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-24T00:24:17-07:00 List-Id: > My gut feeling is that if NTP gives you a time in the range 1-1-1900 to 1= 2-31-1900, something is pretty wrong because computers didn't exist dur= ing that time period. So I'm not really sure what the issue is. I thi= nk you need to be more specific about what you're trying to do. What k= ind of value is your program using for an "NTP time"--is it an in= teger, and if so, what does it represent (seconds since 1-1-1900, nanosecon= ds since 1-1-1900, or what)? Are you trying to see if an NTP time is less = than or greater than a value of Ada.Calendar.Time, or compute the differenc= e in seconds (or something else) between an NTP time value and an Ada.Calen= dar.Time value, or what? =20 >=20 > -- Adam NTP epoch 1 started 1-1-1900 0:00, just like the Unix epoch started 1-1-197= 0 0:00. So when I get a time from an NTP-server, I get seconds from the sta= rt of the NTP epoch. Erlo