Time Class Reference

Represents Time Data type. More...


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


Detailed Description

Represents Time Data type.



Constructor & Destructor Documentation

Time::Time ( int  hours,
int  mins,
int  secs,
int  usec = 0 
)

Overloaded constructor.

Parameters:
hours hours
mins mins
secs secs
usec usec


Member Function Documentation

int Time::get ( int &  hours,
int &  mins,
int &  secs 
) const

retrieves the time using IN parameters

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

Parameters:
hours hours
mins mins
secs secs
usec usec


The documentation for this class was generated from the following file:
CSQL Project Page