DS1302

#include <Arduino.h>
#include <ThreeWire.h>  
#include <RtcDS1302.h>

ThreeWire myWire(6,5,4); // IO, SCLK, CE
RtcDS1302<ThreeWire> Rtc(myWire);

void setup() {
  Serial.begin(9600);
  
  //new = RtcDateTime(year, month, dayOfMonth, hour, minute, second);
  //Uncoment line below to change the time
  // Rtc.SetDateTime(RtcDateTime(2022, 10, 30, 20, 43, 00));
  

}

void loop() {
  // put your main code here, to run repeatedly:
  RtcDateTime now = Rtc.GetDateTime();

  int displaytime = (now.Hour() * 100) + now.Minute();
  Serial.println(displaytime);
  
   // now.Second()
   // now.Minute()
   // now.Hour() // 24 hour mode only
   // now.Day()
   // now.Month()

}