libtime++: Date and time calculation

◆ example6()

void example6 ( )

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

References example6sub().

Referenced by main().

256 {
257  libtime::TAbsoluteTime exampletime;
258 
259  cout << "\n"
260  << "Example 6: How about year value abbreviation?\n"
261  << "----------\n"
262  << "\n";
263 
264  cout << " You may abbreviate year values by two digits. The year\n"
265  << " will be automatically expanded to a full qualified value.\n"
266  << " The initial date is "
267  << std::string(libtime::TAbsoluteTime("1970/1/1")) << ":" << endl;
268 
269  example6sub("72/1/1");
270  example6sub("71/1/1");
271  example6sub("70/1/1");
272  example6sub("69/1/1");
273  example6sub("68/1/1");
274 
275  cout << "\n"
276  << " This means that you can not set the year to values below 100:\n";
277  example6sub("101/1/1");
278  example6sub("100/1/1");
279  example6sub("99/1/1");
280  example6sub("0/1/1");
281 
282 }
void example6sub(std::string exampledate)
Definition: example++.cc:249
class to contain absolute times
Definition: libtime++.h:149
Here is the call graph for this function:
Here is the caller graph for this function: