TM1637 problem

How to print Minute to 7SEG 4digital display

#include <Time.h>
#include <TimeLib.h>
#include <DS1307RTC.h>


// include the SevenSegmentTM1637 library
#include "SevenSegmentTM1637.h"
#include "SevenSegmentExtended.h"



const byte PIN_CLK = 4;   // define CLK pin (any digital pin)
const byte PIN_DIO = 5;   // define DIO pin (any digital pin)
SevenSegmentTM1637    display(PIN_CLK, PIN_DIO);



//--------------------

void setup() {
  Serial.begin(9600);         // initializes the Serial connection @ 9600 baud
  display.begin();            // initializes the display
  display.setBacklight(100);  // set the brightness to 100 %
  display.print("9999");      // display INIT on the display
  delay(1000);                // wait 1000 ms
}
void loop() {
tmElements_t tm;
if (RTC.read(tm)) {
     display.clear();
    print2digits(tm.Hour);
    print2digits(tm.Minute);
    Serial.println();
display.print(tm.Hour);
}
else {
    if (RTC.chipPresent()) {
      Serial.println("The DS1307 is stopped.  Please run the SetTime");
      Serial.println("example to initialize the time and begin running.");
      Serial.println();
    }
  
else 
{
      Serial.println("DS1307 read error!  Please check the circuitry.");
      Serial.println();
    }
    delay(9000);
  }
    delay(1000);
}

void print2digits(int number) {
  if (number >= 0 && number < 10) {
    Serial.write('0');
  }
  Serial.print(number);
}
  display.print("9999");      // display INIT on the display

Really?

What is
up with
the piss-poor
indenting?
Get your
tab key fixed
or learn about Tools + Auto
Format.

What IS the problem? You know how to print a string to the device. You, and only you, have access to the header file, to see what class SevenSegmentTM1637 derives from. If it derives from, directly or indirectly, the Print class, you can print() integers, too. If it derives from some other class, itoa() can convert an integer to a string.