× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Query........Manipulating TimeFields
  • From: "John Taylor" <john.taylor@xxxxxxxxxxxxxxx>
  • Date: Fri, 14 Jul 2000 08:55:04 -0600

You can still create an RPG IV "utility" program that accepts the times as input parameters and calculates the difference for you. Then call this utility program dynamically from your RPG/400 program(s).
 
It would help if you could be a bit more specific for us. Do you need to calculate elapsed time across date boundaries, or is it always for a single day?
 
Within which environment do you need to perform these calculations (ie: RPG/400.. RPG IV.. CL... Query.. etc.)?
 
To what precision would you like the elapsed time returned as? Hours/Min/Seconds or rounded off?
 
 
Regards,
 
John Taylor
Canada
----- Original Message -----
Sent: Friday, July 14, 2000 07:33
Subject: Re: Query........Manipulating TimeFields


The application is "RPG 400" (according to programmer at the vendor), not RPG IV.

Sergeant John P. Walsh
Haverford Township Police Department
1010 Darby Road
Havertown, PA 19083
Voice   610.853.1298 ext 212
Fax      610.853.9210
sgt_walsh@icdc.com



sgt.walsh@icdc.com
Sent by: owner-midrange-l@midrange.com

07/14/00 06:56 AM
Please respond to MIDRANGE-L

       
        To:        MIDRANGE-L@midrange.com
        cc:        
        Subject:        Query........Manipulating TimeFields



Could someone please point me to some reference material on how to work with fields containing time stored as a numeric (len6, dec 0.)  Specifically, I need to calculate elapsed time between twor or more time fields.  Seems to me I need to create a Result Field but am not certain of the correct formula to to the calculations between time1 and time 2 to get Elapsed_Time.  


Sergeant John P. Walsh
Haverford Township Police Department
1010 Darby Road
Havertown, PA 19083
Voice   610.853.1298 ext 212
Fax      610.853.9210
sgt_walsh@icdc.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.