1: // Filename: TESTZT.CPP 2: // Purpose: Test driver the ZoneTime class. 4: #include <iostream> 5: using namespace std; 7: #include "ZONETIME.H" 9: int main() 10: { 11: ZoneTime t1; 12: ZoneTime t2(5); 13: ZoneTime t3(5, 30); 14: ZoneTime t4(5, 30, 10); 15: ZoneTime t5(5, 30, 10, CDT); 17: cout << endl; 18: cout << "t1: "; t1.Display(); cout << endl; 19: cout << "t2: "; t2.Display(); cout << endl; 20: cout << "t3: "; t3.Display(); cout << endl; 21: cout << "t4: "; t4.Display(); cout << endl; 22: cout << "t5: "; t5.Display(); cout << endl; 23: cout << endl; 25: ZoneTime t; 26: t.Set(23, 59, 55, PST); 27: cout << "t: "; t.Display(); cout << endl; 28: cout << endl; 30: cout << "Incrementing t:" << endl; 31: for (int count = 1; count <= 10; count++) 32: { 33: t.Display(); 34: cout << ' '; 35: t.Increment(); 36: cout << endl; 37: } 38: cout << endl; 40: return 0; 41: }