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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1850e397df49d95 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: How to convert an Fixed_Point to to an Integer ? Date: 1996/12/26 Message-ID: #1/1 X-Deja-AN: 206054869 references: <01bbf058$cbdbf980$LocalHost@jerryware> <1996Dec23.072835.1@eisner> <01bbf179$0c4361e0$9b2d5c8b@jerryware> <32C02A1E.6268@watson.ibm.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-12-26T00:00:00+00:00 List-Id: Keith said, replying to me > So a truly portable solution would have to use a loop ... Actually, a truly portable solution could just use an algorithm to compute the number of days between two given dates and then account for the seconds. It's a bit more complicated than it should need to be, but there's no portability problem. Sure, you can always do everythnig yourself! The reason I suggested a loop through years is that way you do much less work yourself.