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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9fbc059a74d74032 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-25 15:02:36 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.telebeam.net!washdc3-snf1!washdc3-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: Leap Seconds Date: Fri, 25 May 2001 18:02:35 -0400 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3B0ED67B.E40A4E06@averstar.com> References: <9elpii$30i$1@nh.pace.co.uk> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 990828156 15553 141.199.8.77 (25 May 2001 22:02:36 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 25 May 2001 22:02:36 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:7785 Date: 2001-05-25T22:02:36+00:00 List-Id: Marin David Condic wrote: > > I need to do some computations involving seconds between two dates. AFAIK, > there is nothing specific in the ARM related to the package Calendar that an > implementation is required to account for leap seconds. Consider the > following computation: > > Some_Duration := Time_Of (1996, 1, 1, 0.0) - Time_Of (1980, 1, 6, 0.0) ; > > I'd guess that an implementation having a big enough Duration would almost > certainly consider leap years in this computation, but leap seconds might > not be required or implemented. Across relatively small spans of time, it > probably doesn't matter and certainly if one is only doing relative timing > (deltas) it doesn't matter at all. However, across larger spans, it could be > enough to make a difference. Does anyone know if it is required? There is no requirement to support leap seconds. I would guess it is safe to say that leap seconds are *not* supported in any Ada implementation. There might even be ACATS/ACVC tests that are actively unfriendly to leap seconds, though I don't know for sure. > > MDC > -- > Marin David Condic > Senior Software Engineer > Pace Micro Technology Americas www.pacemicro.com > Enabling the digital revolution > e-Mail: marin.condic@pacemicro.com > Web: http://www.mcondic.com/ -- -Tucker Taft stt@avercom.net http://www.averstar.com/~stt/ Chief Technology Officer, AverCom Corporation (A Titan Company) Burlington, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/services/ebusiness_applications.html)