@Override public String toString(){
  StringBuilder sb=new StringBuilder(32);
  if (isNegativeYear) {
    sb.append('-');
  }
  sb.append(year);
  sb.append('-');
  sb.append(months);
  sb.append('-');
  sb.append(days);
  sb.append('T');
  sb.append(hours);
  sb.append(':');
  sb.append(minutes);
  sb.append(':');
  sb.append(seconds);
  if (fractionalSeconds != null) {
    sb.append('.');
    sb.append(fractionalSeconds);
  }
  if (hoursTimezone != null) {
    if (iHoursTimezone == 0 && iMinutesTimezone == 0) {
      sb.append("Z");
    }
 else {
      if (isNegativeTimezone) {
        sb.append('-');
      }
 else {
        sb.append('+');
      }
      sb.append(hoursTimezone);
      sb.append(':');
      sb.append(minutesTimezone);
    }
  }
  return sb.toString();
}

@ Override public String toString ( ) { StringBuilder sb = new StringBuilder ( 32 ) ; if ( isNegativeYear ) { sb . append ( '-' ) ; } sb . append ( year ) ; sb . append ( '-' ) ; sb . append ( months ) ; sb . append ( '-' ) ; sb . append ( days ) ; sb . append ( 'T' ) ; sb . append ( hours ) ; sb . append ( ':' ) ; sb . append ( minutes ) ; sb . append ( ':' ) ; sb . append ( seconds ) ; if ( fractionalSeconds != null ) { sb . append ( '.' ) ; sb . append ( fractionalSeconds ) ; } if ( hoursTimezone != null ) { if ( iHoursTimezone == 0 && iMinutesTimezone == 0 ) { sb . append ( "Z" ) ; } else { if ( isNegativeTimezone ) { sb . append ( '-' ) ; } else { sb . append ( '+' ) ; } sb . append ( hoursTimezone ) ; sb . append ( ':' ) ; sb . append ( minutesTimezone ) ; } } return sb . toString ( ) ; }
returns the xsd : datetime string - representation of this object .
