Append an outgoing stream with the time formatted as hh:mm:ss
| Return Type | Function name | Arguments |
|---|---|---|
| ostream& | operator<< | (ostream&,hzTime&,) |
Declared and defined in file: hzDate.cpp
Function Logic:
Function body:
ostream& operator<< (ostream& os)hzTime& t,
{
// Category: Data Output
//
// Append an outgoing stream with the time formatted as hh:mm:ss
//
// Arguments: 1) os The output stream
// 2) t The hzTime (const)
char buf [12]; // Working buffer
sprintf(buf, "%02d:%02d:%02d", (char) t.Hour(), (char) t.Min(), (char) t.Sec()) ;
os << buf ;
return os ;
}