isis/src/base/objs/iTime/iTime.cpp
QString iTime::UTC(int precision) const {
    QString utc = YearString() + "-" ;
    if(Month() < 10) utc += "0" + MonthString() + "-";
    else utc += MonthString() + "-";

    if(Day() < 10) utc += "0" + DayString() + "T";
    else utc += DayString() + "T";

    if(Hour() < 10) utc += "0" + HourString() + ":";
    else utc += HourString() + ":";

    if(Minute() < 10) utc += "0" + MinuteString() + ":";
    else utc += MinuteString() + ":";

    if(Second() < 10) utc += "0" + SecondString(precision);
    else utc += SecondString(precision);
    
    return utc;
  }
/**
   * Returns the internally stored time, formatted as a UTC time
   *
   * @return string The internalized time, in UTC format
   */
Returns the internally stored time, formatted as a UTC time
@return string The internalized time, in UTC format
Returns the internally stored time formatted as a UTC time @return string The internalized time in UTC format
QString iTime::UTC(int precision) const {
    QString utc = YearString() + "-" ;
    if(Month() < 10) utc += "0" + MonthString() + "-";
    else utc += MonthString() + "-";
    if(Day() < 10) utc += "0" + DayString() + "T";
    else utc += DayString() + "T";
    if(Hour() < 10) utc += "0" + HourString() + ":";
    else utc += HourString() + ":";
    if(Minute() < 10) utc += "0" + MinuteString() + ":";
    else utc += MinuteString() + ":";
    if(Second() < 10) utc += "0" + SecondString(precision);
    else utc += SecondString(precision);
    return utc;
  }
QString iTime :: UTC ( int precision ) const { QString utc = YearString ( ) + " " ; if ( Month ( ) < 10 ) utc += " " + MonthString ( ) + " " ; else utc += MonthString ( ) + " " ; if ( Day ( ) < 10 ) utc += " " + DayString ( ) + " " ; else utc += DayString ( ) + " " ; if ( Hour ( ) < 10 ) utc += " " + HourString ( ) + " " ; else utc += HourString ( ) + " " ; if ( Minute ( ) < 10 ) utc += " " + MinuteString ( ) + " " ; else utc += MinuteString ( ) + " " ; if ( Second ( ) < 10 ) utc += " " + SecondString ( precision ) ; else utc += SecondString ( precision ) ; return utc ; }
Returns the internally stored time, formatted as a UTC time
 @return string The internalized time, in UTC format
Returns the internally stored time formatted as a UTC time @return string The internalized time in UTC format