Browse Prior Art Database

Elapsed-Time Computation Algorithm

IP.com Disclosure Number: IPCOM000104269D
Original Publication Date: 1993-Mar-01
Included in the Prior Art Database: 2005-Mar-19
Document File: 1 page(s) / 22K

Publishing Venue

IBM

Related People

Silver, RM: AUTHOR

Abstract

This algorithm computes the number of complete elapsed minutes from an initial time to the current time. This algorithm uses two functions:

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Elapsed-Time Computation Algorithm

      This algorithm computes the number of complete elapsed minutes
from an initial time to the current time.  This algorithm uses two
functions:

      1.   BaseDate( )sup 1

      o    Number of complete elapsed days since and including
January 1, 0001.

      2.   TimeMinutes()sup 2

      o    Number of complete elapsed minutes since 00:00 for the
current date.

      The algorithm:

      Elapsed Time = 1440 * (Current BaseDate - Initial BaseDate) +
Current TimeMinutes - Initial TimeMinutes

      The characteristics of the algorithm are:

o   Day end, year end, century end independent.
o   Granularity is easily modified.
    -   Change 1440sup 33 to 86400sup 4 and replace the TimeMinutes
        function with a TimeSeconds()5
    -   TimeSeconds()

        o    Number of complete elapsed seconds since 00:00 for the
        current date.
    *    Easy to test.

___________________________
1    Available in REXX as DATE('B')
2    Available in REXX as TIME('M')
3    Number of minutes in a day
4    Number of seconds in a day
5    Available in REXX as TIME('S')

Disclosed Anonymously.