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.100.137 with SMTP id y9mr845398qan.2.1343314385031; Thu, 26 Jul 2012 07:53:05 -0700 (PDT) Received: by 10.66.89.196 with SMTP id bq4mr1797237pab.26.1343314384797; Thu, 26 Jul 2012 07:53:04 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no2334603qas.0!news-out.google.com!p10ni64698300pbh.1!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.13.MISMATCH!feed.xsnews.nl!border-3.ams.xsnews.nl!xlned.com!feeder3.xlned.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!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 01:34:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4b3daad0-b884-4f42-9aa5-891bcfeadf87@googlegroups.com> References: <500dc548$0$2936$f40e02c5@shockwave.dk.telia.net> <18893cca-baa2-4930-bfb4-4c4f7eb7e983@googlegroups.com> <5s8s08lv6dj1i4tkb99roq9roifsgr44vd@invalid.netcom.com> <1e0fmpgo1d8ke.7gc1rzrv8v72.dlg@40tude.net> <6f28df4c-6b1a-46d1-a3b9-9ae41ea975a2@googlegroups.com> <4l5t6lhzgquo$.qa4ud3ssphtd.dlg@40tude.net> NNTP-Posting-Host: 193.163.1.105 Mime-Version: 1.0 X-Trace: posting.google.com 1343118921 30964 127.0.0.1 (24 Jul 2012 08:35:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Jul 2012 08:35:21 +0000 (UTC) Cc: mailbox@dmitry-kazakov.de In-Reply-To: <4l5t6lhzgquo$.qa4ud3ssphtd.dlg@40tude.net> 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: 2619 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-24T01:34:03-07:00 List-Id: > Political time is one regulated by politicians, localized, daylight saving > etc. Political time is unusable for the purpose of time stamping and clock > synchronization, but of course indispensable for the UI. > > Ada.Calendar implicitly represents such a time. NTP, I only guess, because > we are using other mechanisms of time distribution and synchronization, is > not a political time. Is it UTC? > > Which is why I second to Adam asking what are going to achieve. > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de I see. NTP is just the number of seconds (and fractions thereof) from 1-1-1900 0:00, adjusted with leap seconds - so it is not adjusted for timezones, daylight saving. It is not UTC, as UTC does not take leap seconds in account. The purpose of this exercise is to compare two timestamps, one base on Unix epoch and one based on NTP epoch. Regards Erlo