comp.lang.ada
 help / color / mirror / Atom feed
From: Wilhelm.Spickermann@t-online.de (Wilhelm Spickermann)
To: comp.lang.ada@ada.eu.org
Subject: RE: Calendar - leap seconds
Date: Sun, 18 Mar 2001 16:53:43 +0100 (CET)
Date: 2001-03-18T16:53:43+01:00	[thread overview]
Message-ID: <mailman.984930914.2293.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <9907k6$bgu$1@uranium.btinternet.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1086 bytes --]


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 (<a time_t value of 536457599 shall correspond to "Wed Dec
31 23:59:59 UTC 1986">). 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





  reply	other threads:[~2001-03-18 15:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-17 17:46 Calendar - leap seconds singlespeeder
2001-03-18 15:53 ` Wilhelm Spickermann [this message]
2001-03-19  3:47   ` Nick Roberts
2001-03-19 14:43     ` Robert A Duff
2001-03-19 20:10       ` Laurent Guerby
2001-03-20 10:26         ` Nick Roberts
2001-03-20 19:23           ` Laurent Guerby
2001-03-20 11:34   ` Joseph P Vlietstra
2001-03-20 13:08     ` Wilhelm Spickermann
2001-03-31 14:07       ` Kent Paul Dolan
2001-04-01 11:57         ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox