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>secs() seconds from midnight from time string examplep.prg</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Secs()         Seconds from midnight from time string      Examplep.prg


Syntax:        Secs(<expC>)

Argument:      <expC> is a time string in the form: HH:MM:SS.

Returns:       An integer numeric value.

               Secs() returns a numeric value representing the number of
               seconds from midnight.  The maximum return value is
               86,400, the numbers of seconds in a day.

Note:          The inverse of Secs() is Tstring().

Library:       EXTEND.LIB


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

   FUNCTION Secs

   PARAMETERS cl_time

   RETURN VAL(       cl_time   ) * 3600 +;
          VAL(SUBSTR(cl_time,4)) *   60 +;
          VAL(SUBSTR(cl_time,7))


See Also: Tstring()

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