Hi,
I have two timestamps; a beginning and an ending.
I need to determine the elapsed time from the beginning to the ending.
There must be an easy way of doing this but cannot put my finger on it.
It seems that all the operation codes only allow processing on a specific portion; hours, minutes, seconds....
Is there a way to do what I want without 30 lines of code to extract each portion and then calculate the difference?
I thought RPGLE was suppose to be easier.
I could convert the hours and minutes to seconds of both values and then calculate like I used to do in RPG III but that seems archaic and if anyone saw that in my code, I would be embarrassed to say the least.
PLEASE, no FREE examples. they will not allow it. RPGLE only.
Thanks in advance,
Mike.
I have two timestamps; a beginning and an ending.
I need to determine the elapsed time from the beginning to the ending.
There must be an easy way of doing this but cannot put my finger on it.
It seems that all the operation codes only allow processing on a specific portion; hours, minutes, seconds....
Is there a way to do what I want without 30 lines of code to extract each portion and then calculate the difference?
I thought RPGLE was suppose to be easier.
I could convert the hours and minutes to seconds of both values and then calculate like I used to do in RPG III but that seems archaic and if anyone saw that in my code, I would be embarrassed to say the least.
PLEASE, no FREE examples. they will not allow it. RPGLE only.
Thanks in advance,
Mike.
Comment