time comparison

Scott Walker scottwalker at ramsystemscorp.com
Wed May 15 09:19:02 PDT 2019


@tm is an 8 character field

it is not a total of hours and minutes but rather the current system time

for example 08:15:20

so putting that into a 5 character variable defined as (5, hm) is screwing things up from the start

how about:

st(time, 8)=XX        	 'set start time to whatever you want.... @tm or some set value

in(5,hm)="00:20"    	'The time to increment the starting time by

ft(time, 8) = st + in	'Final time....starting time plus 20 minutes


    Then compare ft to whatever variable defined as (8, time)
 that you want


So  in summary you start with a time, you add a couple of hours and minutes, your result is a time


Regards,


Scott Walker



-----Original Message-----
From: Filepro-list [mailto:filepro-list-bounces+scottwalker=ramsystemscorp.com at lists.celestial.com] On Behalf Of davidrottkamp via Filepro-list
Sent: Wednesday, May 15, 2019 12:04 PM
To: filepro <filepro-list at lists.celestial.com>
Subject: time comparison

Hi

What is the best way to do time comparisons in filepro

want to see if a start time a(5,hm) plus an increment of 20 minutes is gt @tm cant seem to get the value correct

tm(5,hm)=@tm;in(5,hm)="00:20";nt(5,hm)=tm+in  ' not getting the correct time in variable nt


-- 
David Rottkamp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20190515/20a2d245/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: davidrottkamp.vcf
Type: text/x-vcard
Size: 166 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20190515/20a2d245/attachment.vcf>
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes
http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list