CONVTOD is the ticket.

--
Jim Connelley

--- On Wed, 1/4/12, Shane <[email protected]> wrote:

> From: Shane <[email protected]>
> Subject: Re: Calculate elapsed time from MM/DD/YY HH:MM:SS formats
> To: [email protected]
> Date: Wednesday, January 4, 2012, 9:20 PM
> In another world, you could simply
> use the date command to do similar
> (convert to seconds from epoch and subtract). KISS.
> Maybe LE (of which I know not much at all) has something
> similar.
>
> I'm sure Steve will bob up with a course that has this as
> part of the
> curriculum ....   ;-)
>
> Shane ...
>
>
> On Wed, 4 Jan 2012 21:21:51 -0500 Brian Westerman wrote:
>
> > 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.
>

Reply via email to