comp.lang.ada
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
Subject: Re: Ada, calendar, and daylight savings
Date: Tue, 30 Oct 2001 02:07:40 GMT
Date: 2001-10-30T02:07:40+00:00	[thread overview]
Message-ID: <3BDE0B8D.6040409@acm.org> (raw)
In-Reply-To: WplD7.89301$gT6.45832730@news1.rdc1.sfba.home.com

tmoran@acm.org wrote:

>>How are you going to do this in Ada?  You can't without using
>>non-standard constructs.
>>
>   It seems to me your problem is with your compiler vendor's
> implementation, not with the language.  The ARM 9.6(24) says
> "... as appropriate to an implementation defined timezone; ..."
> You want that timezone to be UTC.  Why not just replace the
> package body Ada.Calendar that your compiler supplies, with a
> different one that returns UTC for Clock?  (A long time ago
> my compiler vendor's Clock used the MSDOS 55 ms tick, which
> was much to gross for my problem.  So I replaced his Ada.Calendar
> body with one that used the PC's 8253 timer chip.  Not only was
> it much finer, but it was much faster than a system call, so
> profiling speeded up substantially. :)
> 

But what if I want a portable package that does this, one that works 
with multiple compilers?  Surely portability should be one of Ada's 
strengths.  Sure, everyone can write their own code to do this, but then 
everyone has to write their own code.  In the world I work in (telephony 
and geographically distributed systems), dealing with time is very 
common, and I want my system to be portable between vendors and I want 
to be able to interact with non-Ada systems.

-Corey




  reply	other threads:[~2001-10-30  2:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-28 23:41 Ada, calendar, and daylight savings Corey Minyard
2001-10-28 23:53 ` Larry Kilgallen
2001-10-29  3:44   ` Corey Minyard
2001-10-29 10:17     ` Larry Kilgallen
2001-10-29 14:02       ` Corey Minyard
2001-10-29 14:35     ` Marin David Condic
2001-10-29  2:34 ` Steven Deller
2001-10-29  3:51   ` tmoran
2001-10-29  5:53     ` Corey Minyard
2001-10-29  6:49       ` tmoran
2001-10-29 10:21       ` Larry Kilgallen
2001-10-29 14:18         ` Corey Minyard
2001-10-29 23:15           ` tmoran
2001-10-30  2:07             ` Corey Minyard [this message]
2001-10-30  3:11               ` tmoran
2001-11-01  0:13                 ` Al Christians
2001-10-30 12:29               ` Larry Kilgallen
2001-10-29 14:48       ` Marin David Condic
2001-10-29 17:41         ` Corey Minyard
2001-10-30  2:19           ` Nick Roberts
2001-10-30  5:41             ` Al Christians
replies disabled

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