public String toGeneralizedTimeString(){
  Calendar calendar=Calendar.getInstance(TimeZone.getTimeZone("UTC"));
  calendar.clear();
  calendar.setTimeInMillis(kerberosTime);
  return String.format("%04d%02d%02d%02d%02d%02dZ",calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH) + 1,calendar.get(Calendar.DAY_OF_MONTH),calendar.get(Calendar.HOUR_OF_DAY),calendar.get(Calendar.MINUTE),calendar.get(Calendar.SECOND));
}

public String toGeneralizedTimeString ( ) { Calendar calendar = Calendar . getInstance ( TimeZone . getTimeZone ( "UTC" ) ) ; calendar . clear ( ) ; calendar . setTimeInMillis ( kerberosTime ) ; return String . format ( "%04d%02d%02d%02d%02d%02dZ" , calendar . get ( Calendar . YEAR ) , calendar . get ( Calendar . MONTH ) + 1 , calendar . get ( Calendar . DAY_OF_MONTH ) , calendar . get ( Calendar . HOUR_OF_DAY ) , calendar . get ( Calendar . MINUTE ) , calendar . get ( Calendar . SECOND ) ) ; }
returns a string representation of kerberostime object .
