00001 // $Id: Example_DateTime.C,v 1.1 1999/12/07 22:00:30 kathy Exp $ 00002 // $Log: Example_DateTime.C,v $ 00003 // Revision 1.1 1999/12/07 22:00:30 kathy 00004 // new example macro showing how to get date and time so I won't have to figure it out again 00005 // 00006 //======================================================================= 00007 // owner: Kathy Turner 00008 // what it does: 00009 // Shows how to get the date and time 00010 //======================================================================= 00011 00012 void Example_DateTime() 00013 { 00014 00015 TDatime now; 00016 Int_t ndate=now.GetDate(); 00017 Int_t ntime=now.GetTime(); 00018 cout << " DATE = " << ndate << " TIME = " << ntime << endl; 00019 00020 TDatime kathy; 00021 const Char_t *amy = kathy.AsString(); 00022 cout << " Date & Time: " << amy << endl; 00023 00024 00025 } 00026 00027 00028 00029
1.5.9