code: static public String getFormattedTime(long dt, String format, boolean isTime)
      {
          String ret = "";
          SimpleDateFormat df = null;
  
          try
          {
              if(dt > 0)
              {
                  df = formatPool.getFormat(format);
                  if(isTime)
                      df.setTimeZone(DateUtilities.getCurrentTimeZone());
                  else
                      df.setTimeZone(DateUtilities.defaultTZ);
                  ret = df.format(new Date(dt));
              }
          }
          catch(Exception e)
          {
          }
  
          if(df != null)
              formatPool.release(df);
  
          return ret;
      }
docs: Returns the given time parsed using "HH:mm:ss".
  @param dt The time to be parsed
  @param format The format to use when parsing the date
  @param isTime <CODE>true</CODE> if the given time has a timezone
  @return The given time parsed using "HH:mm:ss"