예제 #1
0
 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);
    }
 }
예제 #2
0
 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);
    }
 }