Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - tstos(<c time string>) http://www.X-Hacker.org [<<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()

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