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.66.86.232 with SMTP id s8mr1666632paz.47.1343319301346; Thu, 26 Jul 2012 09:15:01 -0700 (PDT) Received: by 10.66.72.73 with SMTP id b9mr1675040pav.9.1343319301277; Thu, 26 Jul 2012 09:15:01 -0700 (PDT) Received: by 10.68.201.129 with SMTP id ka1mr87885pbc.4.1343314154618; Thu, 26 Jul 2012 07:49:14 -0700 (PDT) Path: p10ni65138561pbh.1!nntp.google.com!u4no4718181pbs.0!news-out.google.com!b9ni65285795pbl.0!nntp.google.com!4no2514088pbo.1!news-out.google.com!p10ni64698300pbh.1!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.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:37:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <933eba5f-e371-4eb8-9c5f-bb4a8115c92f@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 1343115823 32608 127.0.0.1 (24 Jul 2012 07:43:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Jul 2012 07:43:43 +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 X-Received-Bytes: 2231 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-24T00:37:50-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 I want to compare two timestamps, a Unix timestamp and an NTP timestamp. Bo= th are seconds since their respective epoch. Erlo