#ifndef TIM_H #define TIM_H #include #include #include #include #include #include #include #include #include #include #include #include "boost/date_time/gregorian/gregorian.hpp" #include "boost/date_time/posix_time/posix_time.hpp" using namespace std ; using namespace CCfits ; using namespace boost ; using namespace posix_time ; /** */ class Tim : public ptime { public: /** * modified Julian date */ double modJD ; Tim() ; Tim(ptime &p) ; Tim(FITS &f) ; Tim(const std::string & s) ; Tim(const double mjdat) ; #if 0 /** assignment operator * superfluous as member-by-member copy suffices. */ Tim & operator= (const Tim & oth ) ; #endif double gmst() const ; Tim & operator+= (const posix_time::time_duration & td) ; void sync(const ptime t) ; protected: private: double mjd(bool jd=true) const ; } ; Tim operator+ (const Tim &left, const posix_time::time_duration & td) ; ostream & operator<<(ostream &os, const Tim & somespec) ; #endif /* TIM_H */