code: function (dt, format) {
              return dateFormat(isInstanceOf(dt, SQL.Time) ? dt.date : dt, format || this.timeFormat);
          }
docs: Converts a {@link sql.Time} to a string.
  The format used is {@link patio.Time#timeFormat},
  which defaults to {@link patio.Time#DEFAULT_TIME_FORMAT}
  
  @example
  
  var date =  new Date(null, null, null, 13, 12, 12),
  time = new sql.Time(13,12,12);
  patio.timeToString(date); //=> '13:12:12'
  patio.timeToString(time); //=> '13:12:12'
  patio.timeFormat = "hh:mm:ss";
  patio.timeToString(date); //=> '01:12:12'
  patio.timeToString(time); //=> '01:12:12'
  
  @param {Date\patio.sql.Time} dt the time to covert to to a string.
  
  @returns {String} the date string.