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.0 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, 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.82.2 with SMTP id e2mr1783392pay.40.1343313165712; Thu, 26 Jul 2012 07:32:45 -0700 (PDT) Path: b9ni64788283pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!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: Wed, 25 Jul 2012 08:40:00 +0200 Organization: cbb software GmbH Message-ID: <2ivdmu3durx2.1l8gawr0lyhyr.dlg@40tude.net> References: <500dc548$0$2936$f40e02c5@shockwave.dk.telia.net> 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-25T08:40:00+02:00 List-Id: On Tue, 24 Jul 2012 19:23:52 -0700 (PDT), sla29970@gmail.com wrote: > On Monday, July 23, 2012 2:42:32 PM UTC-7, erlo wrote: >> This is because Ada.Calendar starts at 1-1-1901. But NTP starts at >> 1-1-1900, so how can I work my way around this issue? I need to compare >> NTP time with Unix Epoch based time. > > What time scale is being used? Is that time scale counting mean solar > seconds or atomic seconds? Of course UTC and atomic time did not exist at > those epochs, but unless the situation defines the time scale a problem > exists even if the year in question is 1972. See > http://www.ucolick.org/~sla/leapsecs/epochtime.html A great link. Thanks! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de