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=-2.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,PP_MIME_FAKE_ASCII_TEXT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a3358f1ef9d04e63 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-18 07:56:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!enst!enst.fr!not-for-mail From: Wilhelm.Spickermann@t-online.de (Wilhelm Spickermann) Newsgroups: comp.lang.ada Subject: RE: Calendar - leap seconds Date: Sun, 18 Mar 2001 16:53:43 +0100 (CET) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 984930915 44846 137.194.161.2 (18 Mar 2001 15:55:15 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 18 Mar 2001 15:55:15 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: XFMail 1.4.0 on Linux X-Priority: 3 (Normal) In-Reply-To: <9907k6$bgu$1@uranium.btinternet.com> X-Sender: 0211750756-0001@t-dialin.net Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:5825 Date: 2001-03-18T16:53:43+01:00 On 17-Mar-01 singlespeeder wrote: > How do I handle leap seconds using Ada.Calendar as the subtype > Day_Duration > doesn't have enough space for them? > > ARM 9.6(11): > subtype Day_Duration is Duration range 0.0 .. 86_400.0; > > > Am I best just declaring my own subtype with the required range? But, will it help? Does Your operating system still support leap seconds? AFAIK the BIG problem is, that most operating systems no longer support leap seconds, as POSIX has switched to ignoring them (). I don�t have the IEEE 1003.1 standard, but I�ve heard, that they even gave an arithmetic expression for computing a time_t value from a broken time (without using a leap second list). Do our library implementations depend on this? My first impression for GNAT is that they do. So I cannot switch my Operating System (Linux) from using /usr/share/zoneinfo/posix/Europe/Berlin (no leap seconds) to /usr/share/zoneinfo/right/Europe/Berlin (with leap seconds) without breaking Ada. :-( Wilhelm