> -----Ursprungligt meddelande-----
> Från: IBM Mainframe Assembler List [mailto:ASSEMBLER-
> [email protected]] För Brian Westerman
> Skickat: den 5 januari 2012 03:22
> Till: [email protected]
> Ämne: Calculate elapsed time from MM/DD/YY HH:MM:SS formats
>
> Hi,
>
> I have a module that I created many years ago that computes the number of
> days between two dates, but I have been asked if there is a way to expand
> it
> to compute the total time between the two dates as well (if supplied with
> the HH:MM:SS as well).
>
> In the past I have always calculated elapsed time via starting with the
> STCK
> times, subtracting them and then converting them to a readable format, but
> in this case I have the fields already as start-MM/DD/YY HH:MM:SS
> end-MM/DD/YY HH:MM:SS.
>
> When I work backwards from seconds to hours, I keep getting screwed up on
> the days part. Is there an already existing program I can copy that
> someone
> can share before I drive myself nuts? (well, more nuts).

Is there a reason to not do it by using the existing module and the compensate 
for the time of the first day and the time of the last day ?



Regards,
Thomas Berg
_________________________________________
Thomas Berg   Specialist   A M   SWEDBANK

Reply via email to