libtime++: Date and time calculation

◆ example3sub1()

void example3sub1 ( std::string  s1,
std::string  s2,
libtime::TAbsoluteTime  t1,
libtime::TAbsoluteTime  t2,
libtime::TRelativeTime  i 
)

Definition at line 112 of file example++.cc.

Referenced by example3().

115 {
116  cout << "\n"
117  << " So " << s1 << " is ";
118  t1 < t2 ? cout << "earlier" : cout << "later";
119  cout << endl;
120  cout << " than " << s2 << "." << endl;;
121  cout << " The time span between them is " << std::string(t2-t1) << endl;
122  cout << " It is ";
123  t2-t1 < i/2 ? cout << "smaller" : cout << "larger";
124  cout << " than half a sampling interval.\n";
125 }
Here is the caller graph for this function: