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 X-Google-Thread: 103376,cb708cd6d4788d36 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-02 03:59:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!gate.dornier.dasa.DE!not-for-mail From: Joachim =?ISO-8859-1?Q?Schr=F6er?= Newsgroups: comp.lang.ada Subject: Re: How to calculate the number of seconds since January 1st, 1970 ? Date: Tue, 02 Apr 2002 14:00:39 +0200 Message-ID: <3CA99D67.3020609@dornier.eads.net> References: <92694761.0204020124.13aaf9d@posting.google.com> NNTP-Posting-Host: gate.dornier.dasa.de (53.122.46.165) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1017748747 28517407 53.122.46.165 (16 [76083]) User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:21989 Date: 2002-04-02T14:00:39+02:00 List-Id: P. Renaud wrote: > Hi all, > > I have to calculate the number of seconds since January 1st, 1970 > 00:00. > > I tried using the Calendar package but it always fails with the > Time_Error exception (the minus operator used to calculate the > difference between the current date/time and the reference date/time > is greater than the duration type limit). > > How can I do to obtain the correct result ? > > Thanks for your help. > > P. Renaud > Hi, you could download www.adapower.com\schroer\lib-src.zip Use one of the "-" functions in package utilities.calendar_utilities. The functions may be used to calculate what you are looking for. The package is a version of Grady Booch's calendar_utilities with some additional features. Best regards J. Schr�er