#ifndef __UTC_CONVERSION_CLASS_09_08_2006__ #define __UTC_CONVERSION_CLASS_09_08_2006__ /** @file UTC_Conv.h @author Brian Magill @creation date 9/08/2006 @brief wrapper for C gmtime */ #include class UTC_Conv { private: tm *time; public: UTC_Conv(time_t const & t = 0); UTC_Conv(UTC_Conv const &rhs) { time = rhs.time; }; UTC_Conv operator = (UTC_Conv const &rhs) { if(&rhs == this) return *this; time = rhs.time; return *this; }; ~ UTC_Conv() { }; void operator() (time_t const &t); int Sec() const; int Min() const; int Hour() const; int Doy() const; int Year() const; int SinceMidnight() const; void dump(); }; #endif