[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 TSTOS(<C time string>)
 Converts a time string to seconds.
 Returns <expN> number of seconds that equal <time string>.

 <time string> is in the format "HH:MM:SS",
 the same as returned by the TIME() function.

 Useful in applications that handle time by seconds.

 Seconds are the "base" unit of time by which all calculations
 can be accurately made and the result converted to minutes,
 hours, days, or another time string.

 * How many seconds have elapsed since midnight?
 mins_today = TSTOS( TIME() )

 * How many seconds did an operation take?
 start_time = TIME()
 <operation to be timed>
 end_time = TIME()

 * Elapsed time in seconds
 secs_time = TSTOS(end_time) - TSTOS(start_time)


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: TIMESTR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson