Information Functions for ITime Objects

Three of the information functions return an ITime's hour, minute, or second settings; the other information function returns the current time, as determined by the system clock. For example:

ITime Time1(ITime::now());
cout << Time1.hours() << " o'clock occurred "
     << Time1.minutes() << " minutes and "
     << Time1.seconds() << " seconds ago." << endl;

This displays a result such as the following:

12 o'clock occurred 16 minutes and 23 seconds ago.