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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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.76.162 with SMTP id l2mr1240081paw.42.1343314308251; Thu, 26 Jul 2012 07:51:48 -0700 (PDT) Path: 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!ramfeed-1.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada.Calendar and NTP (and Unix Epoch) Date: Tue, 24 Jul 2012 10:14:40 +0200 Organization: cbb software GmbH Message-ID: <4l5t6lhzgquo$.qa4ud3ssphtd.dlg@40tude.net> 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> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 2702 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-24T10:14:40+02:00 List-Id: On Tue, 24 Jul 2012 00:50:15 -0700 (PDT), erlo.haugen@gmail.com wrote: > Den tirsdag den 24. juli 2012 09.11.57 UTC+2 skrev Dmitry A. Kazakov: >> On Tue, 24 Jul 2012 00:37:13 -0400, Dennis Lee Bieber wrote: >> >> > On Mon, 23 Jul 2012 15:07:48 -0700 (PDT), Adam Beneschan >> > <adam@irvine.com> declaimed the following in comp.lang.ada: >> > >> > My gut feeling is that if NTP gives you a time in the range 1-1-1900 to >> > 12-31-1900, something is pretty wrong because computers didn't exist >> > during that time period. So I'm not really sure what the issue is. I >> > think you need >> > >> > Nonetheless, it appears that a 128bit value of all 0s represents the >> > epoch for Network Time Protocol... >> >> Is NTP political time? If not, it does not make much sense to convert it >> Ada.Calendar.Time anyway. Ada.Real_Time.Time looks more appropriate. > > Enlighten me please, what is meant by 'political time'? 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