Public Member Functions | |
| Time (int hours, int mins, int secs, int usec=0) | |
| Overloaded constructor. | |
| int | set (int hours, int mins, int secs, int usec=0) |
| sets the time with specified hours, mins, secs | |
| int | get (int &hours, int &mins, int &secs) const |
| retrieves the time using IN parameters | |
| bool | isValid () const |
| checks for the validity of the time | |
| void | setNull () |
| resets the time | |
| int | usec () const |
| returns the microsecs | |
| int | msec () const |
| returns the millisecs | |
| int | seconds () const |
| returns the secs | |
| int | minutes () const |
| returns the minutes | |
| int | hours () const |
| returns the hours | |
| int | setMsec (int ms) |
| sets the millisecs | |
| int | setUsec (int us) |
| sets the microsecs | |
| int | parseFrom (const char *s) |
| parses the time string passed and stores it It should of the format "hh:mm::ss" | |
Static Public Member Functions | |
| static bool | isValidTime (int hours, int mins, int secs) |
| checks for the validity of the time specified | |
| Time::Time | ( | int | hours, | |
| int | mins, | |||
| int | secs, | |||
| int | usec = 0 | |||
| ) |
Overloaded constructor.
| hours | hours | |
| mins | mins | |
| secs | secs | |
| usec | usec |
| int Time::get | ( | int & | hours, | |
| int & | mins, | |||
| int & | secs | |||
| ) | const |
retrieves the time using IN parameters
| hours | hours | |
| mins | mins | |
| secs | secs |
| int Time::set | ( | int | hours, | |
| int | mins, | |||
| int | secs, | |||
| int | usec = 0 | |||
| ) |
sets the time with specified hours, mins, secs
| hours | hours | |
| mins | mins | |
| secs | secs | |
| usec | usec |