std::string printAs( const CommonTime& t, const std::string& fmt ) { TimeTagType ttt; try { ttt.convertFromCommonTime(t); return ttt.printf(fmt); } catch (InvalidRequest& ir) { return ttt.printError(fmt); } }
std::string printAs( const CommonTime& t, const std::string& fmt ) throw( gpstk::StringUtils::StringException ) { TimeTagType ttt; try { ttt.convertFromCommonTime(t); return ttt.printf(fmt); } catch (InvalidRequest& ir) { return ttt.printError(fmt); } }