Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>elaptime() difference between time strings examplep.prg</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ElapTime()     Difference between time strings         Examplep.prg


Syntax:        ElapTime(<expC1>, <expC2>)

Argument:      <expC1> is the beginning time string in the form:
               HH:MM:SS.

               <expC2> is the ending time string in the form:
               HH:MM:SS.

Returns:       A character string in the form: HH:MM::SS.

Note:          ElapTime() should only be used for timings under 24
               hours.

Calls:         Secs()
               Tstring():

Library:       EXTEND.LIB


--------------------------------- Source Code ------------------------------

   FUNCTION ElapTime

   PARAMETERS cl_start, cl_end

   RETURN Tstring(IF(cl_end < cl_start, 86400 , 0) +;
                  Secs(cl_end) - Secs(cl_start))


See Also: Secs() Tstring()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson