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,2b151131f90050ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-29 18:07:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news2.rdc2.tx.home.com.POSTED!not-for-mail Message-ID: <3BDE0B8D.6040409@acm.org> From: Corey Minyard User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.5+) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada, calendar, and daylight savings References: <3BDD6550.8020805@acm.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 30 Oct 2001 02:07:40 GMT NNTP-Posting-Host: 24.7.109.109 X-Complaints-To: abuse@home.net X-Trace: news2.rdc2.tx.home.com 1004407660 24.7.109.109 (Mon, 29 Oct 2001 18:07:40 PST) NNTP-Posting-Date: Mon, 29 Oct 2001 18:07:40 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:15387 Date: 2001-10-30T02:07:40+00:00 List-Id: 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