libtime++: Date and time calculation
dump.cc
Go to the documentation of this file.
1 
18 #define TF_DUMP_CC_VERSION \
19  "TF_DUMP_CC V1.0"
20 
21 #include <libtime++.h>
22 #include<iostream>
23 
24 namespace libtime {
25 
26  void dump(std::ostream& os, const TBaseClassTime& t)
27  {
28  time_kernel::time_Ts mytime_Ts(t);
29  os << " ** dump internals of " << t.timestring() << std::endl;
30  os << " ** year " << mytime_Ts.year << std::endl;
31  os << " ** doy " << mytime_Ts.doy << std::endl;
32  os << " ** hour " << mytime_Ts.hour << std::endl;
33  os << " ** minute " << mytime_Ts.minute << std::endl;
34  os << " ** second " << mytime_Ts.second << std::endl;
35  os << " ** milli second " << mytime_Ts.milsec << std::endl;
36  os << " ** micro second " << mytime_Ts.micsec << std::endl;
37  }
38 
39 } // namespace libtime
40 
41 /* ----- END OF dump.cc ----- */
void dump(std::ostream &os, const TBaseClassTime &t)
dump internal representation of time (for debugging purposes)
Definition: dump.cc:26
std::string timestring() const
Definition: libtime++.h:267