It's a way of life
Download now: TIMECLS.ZIP (16.7 k)
This class gives you the ability to hold & manipulate time values. It was developed to assist mainly in calculations for timing purposes and the display of durations. Also includes additional helper functions.
TimeCls makes it simple to perform addition and subtraction of time values, such as:
6:41:13 + 12:35:51 = 19:07:04
(where the time is in the format HH:MM:SS).
|
TIME a(6, 41, 13); TIME c = a + b; |
// Set time a to 6:41:13 // Time c will contain 19:07:04 |
You can also retrieve the time value from the class in a number of useful ways (see the source file for comments).
|
Download now: TIMECLS.ZIP (16.7 k) |
Post new comment