docs: public static String binaryToString(Object tempBinary, int sDateFormat) 
      {
          String aStr = Constants.BLANK;
          if (!(tempBinary instanceof Date))
              return aStr;
          Date date = new Date(((Date)tempBinary).getTime());
          if (date.getTime() == 0)
              return aStr;
          if (gDateFormat == null)
              initGlobals();
          synchronized (gCalendar)
          {
              if ((sDateFormat == DBConstants.DATE_ONLY_FORMAT) || (sDateFormat == DBConstants.DATE_FORMAT))
                  aStr = gDateFormat.format(date);
              else if ((sDateFormat == DBConstants.SHORT_DATE_ONLY_FORMAT) || (sDateFormat == DBConstants.SHORT_DATE_FORMAT))
                  aStr = gDateShortFormat.format(date);
              else if ((sDateFormat == DBConstants.TIME_ONLY_FORMAT) || (sDateFormat == DBConstants.TIME_FORMAT))
                  aStr = gTimeFormat.format(date);
              else if ((sDateFormat == DBConstants.SHORT_TIME_ONLY_FORMAT) || (sDateFormat == DBConstants.SHORT_TIME_FORMAT))
                  aStr = gDateShortTimeFormat.format(date);
              else if (sDateFormat == DBConstants.SQL_DATE_FORMAT)
                  aStr = gDateSqlFormat.format(date);
              else if (sDateFormat == DBConstants.SQL_TIME_FORMAT)
                  aStr = gTimeSqlFormat.format(date);
              else if (sDateFormat == DBConstants.SQL_DATE_TIME_FORMAT)
                  aStr = gDateTimeSqlFormat.format(date);
              else if (sDateFormat == DBConstants.LONG_TIME_ONLY_FORMAT)
                  aStr = gLongTimeFormat.format(date);
              else if (sDateFormat == DBConstants.LONG_DATE_TIME_FORMAT)
                  aStr = gLongDateTimeFormat.format(date);
              else if (sDateFormat == DBConstants.HYBRID_TIME_ONLY_FORMAT)
              {
                  {
                      gCalendar.setTime(date);
                      if (gCalendar.get(Calendar.SECOND) > 0)
                          aStr = gLongTimeFormat.format(date);
                      else
                          aStr = gTimeFormat.format(date);
                  }
              }
              else if (sDateFormat == DBConstants.HYBRID_DATE_TIME_FORMAT)
              {
                  gCalendar.setTime(date);
                  if (gCalendar.get(Calendar.SECOND) > 0)
                      aStr = gLongDateTimeFormat.format(date);
                  else
                      aStr = gDateTimeFormat.format(date);
              }
              else
                  aStr = gDateTimeFormat.format(date);
          }
          return aStr;
      }