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 - tstoh(<c time string>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 TSTOH(<C time string>)
 Converts a time string to hours.
 Returns <expN> number of hours 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 hours.

 * How many hours have elapsed since midnight?
 hrs_today = TSTOH( TIME() )

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

 * Elapsed time in hours
 hrs_time = TSTOH(end_time) - TSTOH(start_time)


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: HTOSS() SSTOH() TIMESTR()

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