Error - expected primary expression

hello, I'm new to the forum can you please check errors for this code?


// include the library
#include <LiquidCrystal.h>
#include <Time.h>
#include <TimeLib.h>
#include <EEPROM.h>
#include <Arduino.h>
#include <Wire.h>
String months[12] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
String dayofweek[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
String setModes[6] = { "Seconds", "Minutes", "Hours", "Date", "Month", "Year" };
unsigned long setTimeInt[6] = { 1, 60, 3600, 3600 * 24, 2629743, 31556926 };
int setMode = 0;
tmElements_t my_time;   // time elements structure
time_t unix_timestamp;  // a timestamp

#define TIME_MSG_LEN 11  // time sync to PC is HEADER and unix time_t as ten ascii digits
#define TIME_HEADER 255  // Header tag for serial time sync message
#define TIME_HEADER "T"  // Header tag for serial time sync message
#define TIME_REQUEST 7   // ASCII bell character requests a time sync message

String zero = "0";
String one = "1";
String two = "2";
String three = "3";
String four = "4";
String five = "5";
String six = "6";
String seven = "7";
String eight = "8";
String nine = "9";




int Tmonth = month();
String date = String(((day() / 10) % 10)) + String((day() % 10));
String yearLib = String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));

void convertUnixTime() {
  my_time.Second = second();
  my_time.Hour = hour();
  my_time.Minute = minute();
  my_time.Day = day();
  my_time.Month = month();
  my_time.Year = year() - 1970;  // years since 1970, so deduct 1970
  unix_timestamp = makeTime(my_time);
  Tmonth = month();
}

// initialize the interface pins
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void digitalClockDisplay() {
  // digital clock display of the time
  Serial.print(hour());
  printDigits(minute());
  printDigits(second());
  Serial.print(" ");
  Serial.print(day());
  Serial.print(" ");
  Serial.print(month());
  Serial.print(" ");
  Serial.print(year());
  Serial.print(" ");
  Serial.println("A),A1,A2 ");
  Serial.print(digitalRead(A0));
  Serial.print(" ");
  Serial.print(digitalRead(A1));
  Serial.print(" ");
  Serial.print(digitalRead(A2));
  Serial.print(" ");
  Serial.println("Set Time: " + setModes[setMode % 6]);
}

void printDigits(int digits) {
  // utility function for digital clock display: prints preceding colon and leading 0
  Serial.print(":");
  if (digits < 10)
    Serial.print('0');
  Serial.print(digits);
}


void processSyncMessage() {
  unsigned long pctime;
  const unsigned long DEFAULT_TIME = 1357041600;  // Jan 1 2013

  if (Serial.find(TIME_HEADER)) {
    pctime = Serial.parseInt();
    if (pctime >= DEFAULT_TIME) {  // check the integer is a valid time (greater than Jan 1 2013)
      setTime(pctime);             // Sync Arduino clock to the time received on the serial port
    }
  }
}

time_t requestSync() {
  Serial.write(TIME_REQUEST);
  return 0;  // the time will be sent later in response to serial mesg
}

void eepromSetDateTime(int hours, int minutes, int seconds, int date, int month, int year) {
  EEPROM.write(0, hours);
  EEPROM.write(1, minutes);
  EEPROM.write(2, seconds);
  EEPROM.write(3, date);
  EEPROM.write(4, month);
  EEPROM.write(5, year);
}

void changeMode() {

  lcd.clear();
  setMode = setMode + 1;
  while (digitalRead(A2) == HIGH) {
    eepromSetDateTime(hour(), minute(), second(), day(), month(), year());
    lcd.setCursor(0,0);
    lcd.print("Set Time: " + setModes[setMode % 6]);
    lcd.setCursor(0, 1);
  lcd.print( String(dayofweek[dayOfWeek(unix_timestamp + ()) % 7]) + ", " + String(((hour() / 10) % 10)) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10)) );
  lcd.setCursor(0, 2);
  lcd.print(months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10)));
  }
}



//
//
//SETUP
void setup() {

  lcd.begin(20, 4, "LCD_5x8DOTS");
  lcd.clear();

  convertUnixTime();
  setTime(EEPROM.read(0), EEPROM.read(1), EEPROM.read(2), EEPROM.read(3), EEPROM.read(4), EEPROM.read(5));
  Serial.begin(9600);


  lcd.setCursor(4, 0);
  lcd.print("Initializing");
  lcd.setCursor(6, 1);
  lcd.print("Clock...");
  delay(1500);
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Your clock seems to");
  delay(500);
  lcd.setCursor(0, 1);
  lcd.print("be out of date");
  delay(500);

  lcd.setCursor(0, 2);
  lcd.print("Please set the clock");
  lcd.setCursor(0, 3);
  delay(500);
  lcd.print("NOW");
  delay(3500);
  lcd.clear();
}





//
//
//LOOP
void loop() {



  //set time feature
  if (digitalRead(A1) == HIGH) {
    setMode = 0;
    lcd.clear();
    while (digitalRead(A1) == HIGH) {




      lcd.setCursor(0, 0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
      lcd.setCursor(0,1);
  lcd.print( String(dayofweek[dayOfWeek(unix_timestamp + ()) % 7]) + ", " + String(((hour() / 10) % 10)) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10)) );
  lcd.setCursor(0,2);
  lcd.print(months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10)));

      //changes set time mode
      if (digitalRead(A2) == HIGH) {
        changeMode();
      }
    }



    //increments time
    if (digitalRead(A0) == HIGH) {

      lcd.begin(20, 4, "LCD_5x8DOTS");

      if (setTimeInt[setMode % 6] > 10000) {
        for (int x = 0; x < (setTimeInt[setMode % 6] / 3600); x++) {
          unix_timestamp = unix_timestamp + 3600;
        }
      } else {
        unix_timestamp = unix_timestamp + setTimeInt[setMode % 6];
        setTime(unix_timestamp);
      }
    }


    lcd.clear();
    while (digitalRead(A0) == HIGH) {
      lcd.setCursor(0,0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
      lcd.setCursor(0,1));
  lcd.print( String(dayofweek[dayOfWeek(unix_timestamp + ()) % 7]) + ", " + String(((hour() / 10) % 10)) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10)) );
  lcd.setCursor(0,2);
  lcd.print(months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10)));
      //shows the TIME
    }
    lcd.clear();
  }
  //end




  convertUnixTime();


  if (Serial.available()) {

    processSyncMessage();
    lcd.clear();
    convertUnixTime();
  }
  if (timeStatus() != timeNotSet) {
    digitalClockDisplay();
    convertUnixTime();
  }

  eepromSetDateTime(hour(), minute(), second(), day(), month(), year());
  lcd.setCursor(0,0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
lcd.setCursor(0,1);
  lcd.print( String(dayofweek[dayOfWeek(unix_timestamp + ()) % 7]) + ", " + String(((hour() / 10) % 10)) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10)) );
  lcd.setCursor(0,2);
  lcd.print(months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10)));
}

Welcome to the forum

Split from an unrelated topic

@arduino_guy9212 Do not hijack old topics

Hello arduino_guy9212

Welcome to the best Arduinoforum ever.

Post the error code provided by the IDE.

Does it compile? If not, paste entire error message. If it does compile, then please describe, clearly and completely, what it is doing, and what you think it should be doing.
Thanks

sry i just fix the error -- but my LCD display wont work even though my code is right, no errors, and the hardware wiring if correct.


// include the library
#include <LiquidCrystal.h>
#include <Time.h>
#include <TimeLib.h>
#include <EEPROM.h>
#include <Arduino.h>
#include <Wire.h>
String months[12] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
String dayofweek[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
String setModes[6] = { "Seconds", "Minutes", "Hours", "Date", "Month", "Year" };
unsigned long setTimeInt[6] = { 1, 60, 3600, 86400 , 2629743, 31556926 };
int setMode = 0;
tmElements_t my_time;   // time elements structure
time_t unix_timestamp;  // a timestamp

#define TIME_HEADER 255  // Header tag for serial time sync message
#define TIME_HEADER "T"  // Header tag for serial time sync message
#define TIME_REQUEST 7   // ASCII bell character requests a time sync message

String zero = "0";
String one = "1";
String two = "2";
String three = "3";
String four = "4";
String five = "5";
String six = "6";
String seven = "7";
String eight = "8";
String nine = "9";




int Tmonth = month();
String date = String(((day() / 10) % 10)) + String((day() % 10));
String yearLib = String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));
String stringTime = dayofweek[dayOfWeek(unix_timestamp % 7)] + ", " + String((hour() / 10) % 10) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10));
String stringDate = months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));

void updateTime() {
 stringTime =dayofweek[ dayOfWeek(unix_timestamp  % 7 )] + ", " + String((hour() / 10) % 10) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10));
 stringDate = months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));
}

void convertUnixTime() {
  my_time.Second = second();
  my_time.Hour = hour();
  my_time.Minute = minute();
  my_time.Day = day();
  my_time.Month = month();
  my_time.Year = year() - 1970;  // years since 1970, so deduct 1970
  unix_timestamp = makeTime(my_time);
  Tmonth = month();
}

// initialize the interface pins
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void digitalClockDisplay() {
  // digital clock display of the time
  Serial.print(hour());
  printDigits(minute());
  printDigits(second());
  Serial.print(" ");
  Serial.print(day());
  Serial.print(" ");
  Serial.print(month());
  Serial.print(" ");
  Serial.print(year());
  Serial.print(" ");
  Serial.print("A0,A1,A2 ");
  Serial.print(digitalRead(A0));
  Serial.print(" ");
  Serial.print(digitalRead(A1));
  Serial.print(" ");
  Serial.print(digitalRead(A2));
  Serial.print(" ");
  Serial.print("setTimeInt = " + String(setTimeInt[setMode % 6]));
  Serial.println(" SetMode mod 6 = " + String(setMode % 6));
}

void printDigits(int digits) {
  // utility function for digital clock display: prints preceding colon and leading 0
  Serial.print(":");
  if (digits < 10)
    Serial.print('0');
  Serial.print(digits);
}


void processSyncMessage() {
  unsigned long pctime;
  const unsigned long DEFAULT_TIME = 1357041600;  // Jan 1 2013

  if (Serial.find(TIME_HEADER)) {
    pctime = Serial.parseInt();
    if (pctime >= DEFAULT_TIME) {  // check the integer is a valid time (greater than Jan 1 2013)
      setTime(pctime);             // Sync Arduino clock to the time received on the serial port
    }
  }
}

time_t requestSync() {
  Serial.write(TIME_REQUEST);
  return 0;  // the time will be sent later in response to serial mesg
}

void eepromSetDateTime(int hours, int minutes, int seconds, int date, int month, int year) {
  EEPROM.write(0, hours);
  EEPROM.write(1, minutes);
  EEPROM.write(2, seconds);
  EEPROM.write(3, date);
  EEPROM.write(4, month);
  EEPROM.write(5, year);
}

void changeMode() {
lcd.begin(20, 4 ,LCD_5x8DOTS);
digitalClockDisplay();
updateTime();
  lcd.clear();
  setMode = setMode + 1;
  while (digitalRead(A2) == HIGH) {
    eepromSetDateTime(hour(), minute(), second(), day(), month(), year());
    lcd.setCursor(0, 0);
    lcd.print("Set Time: " + setModes[setMode % 6]);
    lcd.setCursor(0, 1);
    lcd.print(stringTime);
    lcd.setCursor(0, 2);
    lcd.print(stringDate);
  }
}



//
//
//SETUP
void setup() {

  lcd.begin(20, 4);
  lcd.clear();

  convertUnixTime();
  setTime(EEPROM.read(0), EEPROM.read(1), EEPROM.read(2), EEPROM.read(3), EEPROM.read(4), EEPROM.read(5));
  Serial.begin(9600);


  lcd.setCursor(4, 0);
  lcd.print("Initializing");
  lcd.setCursor(6, 1);
  lcd.print("Clock...");
  delay(1500);
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Your clock seems to");
  delay(500);
  lcd.setCursor(0, 1);
  lcd.print("be out of date");
  delay(500);

  lcd.setCursor(0, 2);
  lcd.print("Please set the clock");
  lcd.setCursor(0, 3);
  delay(500);
  lcd.print("NOW");
  delay(3500);
  lcd.clear();
}





//
//
//LOOP
void loop() {
updateTime();
setMode = 1;

  //set time feature
  if (digitalRead(A1) == HIGH) {
    lcd.begin(20, 4 ,LCD_5x8DOTS);
    digitalClockDisplay();
    updateTime();
    setMode = 0;
    lcd.clear();
    while (digitalRead(A1) == HIGH) {
updateTime();
      lcd.setCursor(0, 0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
      lcd.setCursor(0, 1);
      lcd.print(stringTime);
      lcd.setCursor(0, 2);
      lcd.print(stringDate);
    
      //changes set time mode
      if (digitalRead(A2) == HIGH) {
        changeMode();
      }
    }

digitalClockDisplay();

    //increments time
    if (digitalRead(A0) == HIGH) {
digitalClockDisplay();
      lcd.begin(20, 4, "LCD_5x8DOTS");

      if (setTimeInt[setMode % 6] > 10000) {
        for (int x = 0; x < (setTimeInt[setMode % 6] / 3600); x++) {
          unix_timestamp = unix_timestamp + 3600;
        }
      } else {
        unix_timestamp = unix_timestamp + setTimeInt[setMode % 6];
        setTime(unix_timestamp);
      }
    }
digitalClockDisplay();

    lcd.clear();
    while (digitalRead(A0) == HIGH) {
      updateTime();
      lcd.setCursor(0, 0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
      lcd.setCursor(0, 1);
      lcd.print(stringTime);
      lcd.setCursor(0, 2);
      lcd.print(stringDate);
      digitalClockDisplay();
      //shows the TIME
    digitalClockDisplay();
    }
    //end of whileA0
    lcd.clear();
  }
  //end



updateTime();
  convertUnixTime();
      lcd.setCursor(0, 0);
      lcd.print(stringTime);
      lcd.setCursor(0, 1);
      lcd.print(stringDate);

  if (Serial.available()) {

    processSyncMessage();
    lcd.clear();
    convertUnixTime();
  }
  if (timeStatus() != timeNotSet) {
    digitalClockDisplay();
    convertUnixTime();
  }
}

and also i know its not broken because it worked like before my first reply here.

Clearly, your code is not "right"; it may compile, but if it were "right" you'd be done and gone. So, please describe what it is doing that is not correct.
Also, if you got this code somewhere, and have modified it, please point to the source code.
Tell us what section you were last working on, since you think it worked before.

New code [i will explain after this reply]:

  // include the library
  #include <LiquidCrystal.h>
  #include <Time.h>
  #include <TimeLib.h>
  #include <EEPROM.h>
  #include <Arduino.h>
  #include <Wire.h>
  String months[12] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
  String dayofweek[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
  String setModes[6] = { "Seconds", "Minutes", "Hours", "Date", "Month", "Year" };
  unsigned long setTimeInt[6] = { 1, 60, 3600, 86400 , 2629743, 31556926 };
  int setMode = 0;
  tmElements_t my_time;   // time elements structure
  time_t unix_timestamp;  // a timestamp

  #define TIME_HEADER 255  // Header tag for serial time sync message
  #define TIME_HEADER "T"  // Header tag for serial time sync message
  #define TIME_REQUEST 7   // ASCII bell character requests a time sync message

  String zero = "0";
  String one = "1";
  String two = "2";
  String three = "3";
  String four = "4";
  String five = "5";
  String six = "6";
  String seven = "7";
  String eight = "8";
  String nine = "9";




  int Tmonth = month();
  String date = String(((day() / 10) % 10)) + String((day() % 10));
  String yearLib = String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));
  String stringTime = dayofweek[dayOfWeek(unix_timestamp % 7)] + ", " + String((hour() / 10) % 10) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10));
  String stringDate = months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));

  void updateTime() {
  stringTime =dayofweek[ dayOfWeek(unix_timestamp  % 7 )] + ", " + String((hour() / 10) % 10) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10));
  stringDate = months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));
  }

  void convertUnixTime() {
    my_time.Second = second();
    my_time.Hour = hour();
    my_time.Minute = minute();
    my_time.Day = day();
    my_time.Month = month();
    my_time.Year = year() - 1970;  // years since 1970, so deduct 1970
    unix_timestamp = makeTime(my_time);
    Tmonth = month();
  }

  // initialize the interface pins
  const int rs = 12, en = 11, rw = 10, d0 = 9, d1 = 8, d2 = 7, d3 = 6, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

  LiquidCrystal lcd(rs, en, rw, d0, d1, d2, d3, d4, d5, d6, d7);

  void digitalClockDisplay() {
    // digital clock display of the time
    Serial.print(hour());
    printDigits(minute());
    printDigits(second());
    Serial.print(" ");
    Serial.print(day());
    Serial.print(" ");
    Serial.print(month());
    Serial.print(" ");
    Serial.print(year());
    Serial.print(" ");
    Serial.print("A0,A1,A2 ");
    Serial.print(digitalRead(A0));
    Serial.print(" ");
    Serial.print(digitalRead(A1));
    Serial.print(" ");
    Serial.print(digitalRead(A2));
    Serial.print(" ");
    Serial.print("setTimeInt = " + String(setTimeInt[setMode % 6]));
    Serial.println(" SetMode mod 6 = " + String(setMode % 6));
  }

  void printDigits(int digits) {
    // utility function for digital clock display: prints preceding colon and leading 0
    Serial.print(":");
    if (digits < 10)
      Serial.print('0');
    Serial.print(digits);
  }


  void processSyncMessage() {
    unsigned long pctime;
    const unsigned long DEFAULT_TIME = 1357041600;  // Jan 1 2013

    if (Serial.find(TIME_HEADER)) {
      pctime = Serial.parseInt();
      if (pctime >= DEFAULT_TIME) {  // check the integer is a valid time (greater than Jan 1 2013)
        setTime(pctime);             // Sync Arduino clock to the time received on the serial port
      }
    }
  }

  time_t requestSync() {
    Serial.write(TIME_REQUEST);
    return 0;  // the time will be sent later in response to serial mesg
  }

  void eepromSetDateTime(int hours, int minutes, int seconds, int date, int month, int year) {
    EEPROM.write(0, hours);
    EEPROM.write(1, minutes);
    EEPROM.write(2, seconds);
    EEPROM.write(3, date);
    EEPROM.write(4, month);
    EEPROM.write(5, year);
  }

  void changeMode() {
  lcd.begin(20, 4 ,LCD_8BITMODE);
  digitalClockDisplay();
  updateTime();
    lcd.clear();
    setMode = setMode + 1;
    while (digitalRead(A2) == HIGH) {
      eepromSetDateTime(hour(), minute(), second(), day(), month(), year());
      lcd.setCursor(0, 0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
      lcd.setCursor(0, 1);
      lcd.print(stringTime);
      lcd.setCursor(0, 2);
      lcd.print(stringDate);
    }
  }



  //
  //
  //SETUP
  void setup() {

    lcd.begin(20,4,LCD_5x8DOTS  );
    lcd.clear();

    convertUnixTime();
    setTime(EEPROM.read(0), EEPROM.read(1), EEPROM.read(2), EEPROM.read(3), EEPROM.read(4), EEPROM.read(5));
    Serial.begin(9600);


    lcd.setCursor(4, 0);
    lcd.print("Initializing");
    lcd.setCursor(6, 1);
    lcd.print("Clock...");
    delay(1500);
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("Your clock seems to");
    delay(500);
    lcd.setCursor(0, 1);
    lcd.print("be out of date");
    delay(500);

    lcd.setCursor(0, 2);
    lcd.print("Please set the clock");
    lcd.setCursor(0, 3);
    delay(500);
    lcd.print("NOW");
    delay(3500);
    lcd.clear();
  }





  //
  //
  //LOOP
  void loop() {
  updateTime();
  setMode = 1;

    //set time feature
    if (digitalRead(A1) == HIGH) {
      lcd.begin(20, 4 ,LCD_5x8DOTS);
      digitalClockDisplay();
      updateTime();
      setMode = 0;
      lcd.clear();
      
      
  updateTime();
        lcd.setCursor(0, 0);
        lcd.print("Set Time: " + setModes[setMode % 6]);
        lcd.setCursor(0, 1);
        lcd.print(stringTime);
        lcd.setCursor(0, 2);
        lcd.print(stringDate);
      
        //changes set time mode
        if (digitalRead(A2) == HIGH) {
          changeMode();
        }
      

  digitalClockDisplay();

      //increments time
      if (digitalRead(A0) == HIGH) {
  digitalClockDisplay();
        

        if (setTimeInt[setMode % 6] > 10000) {
          for (int x = 0; x < (setTimeInt[setMode % 6] / 3600); x++) {
            unix_timestamp = unix_timestamp + 3600;
          }
        } else {
          unix_timestamp = unix_timestamp + setTimeInt[setMode % 6];
          setTime(unix_timestamp);
        }
      }
  digitalClockDisplay();

      lcd.clear();
      while (digitalRead(A0) == HIGH) {
        updateTime();
        lcd.setCursor(0, 0);
        lcd.print("Set Time: " + setModes[setMode % 6]);
        lcd.setCursor(0, 1);
        lcd.print(stringTime);
        lcd.setCursor(0, 2);
        lcd.print(stringDate);
        digitalClockDisplay();
        //shows the TIME
      digitalClockDisplay();
      }
      
      //end of whileA0
      lcd.clear();
    }
    //end



  updateTime();
    convertUnixTime();
        lcd.setCursor(0, 0);
        lcd.print(stringTime);
        lcd.setCursor(0, 1);
        lcd.print(stringDate);

    if (Serial.available()) {

      processSyncMessage();
      lcd.clear();
      convertUnixTime();
    }
    if (timeStatus() != timeNotSet) {
      digitalClockDisplay();
      convertUnixTime();
    }
  }

Order of functions

  1. Sets variables for LCD and Clock
  2. Initializes LCD [I am using a 20x4 Green 5x8dots, also i forgot to replace 5x8 with 8bitmode]
  3. Prepares functions
  4. Shows message that clock is initializing
  5. shows clock
    -while that is happening, it checks if the switch to set the time is on[A1]
    --checks if A0[increment] is on, then increments it by the nth[setMode] value in the array
    --checks if A2[change mode] is on, then increments the setMode variable

Product: Circuitrocks Nano CH340
Configuration: Nano, ATmega328p Old Bootloader

then this error code:

FQBN: arduino:avr:nano:cpu=atmega328old
Using board 'nano' from platform in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
  -> candidates: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for TimeLib.h: [Time@1.6.1]
ResolveLibrary(TimeLib.h)
  -> candidates: [Time@1.6.1]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
  -> candidates: [EEPROM@2.0]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time\DateStrings.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time\Time.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Generating function prototypes...
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o C:\Users\ZombieArmor9212\AppData\Local\Temp\2586378243\sketch_merged.cpp
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\ZombieArmor9212\AppData\Local\Temp\2586378243\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "-IC:\\Users\\ZombieArmor9212\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\ZombieArmor9212\\Documents\\Arduino\\libraries\\Time" "-IC:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\EEPROM\\src" "-IC:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\Wire\\src" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\sketch\\LCD-Clock.ino.cpp" -o "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\sketch\\LCD-Clock.ino.cpp.o"
Compiling libraries...
Compiling library "LiquidCrystal"
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\LiquidCrystal\LiquidCrystal.cpp.o
Compiling library "Time"
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Time\DateStrings.cpp.o
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Time\Time.cpp.o
Compiling library "EEPROM"
Compiling library "Wire"
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Wire\utility\twi.c.o
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Wire\Wire.cpp.o
Compiling core...
Using precompiled core: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\cores\arduino_avr_nano_cpu_atmega328old_1ae55d1f58e9e3fa5b67e1bbc72f629f\core.a
Linking everything together...
"C:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\sketch\\LCD-Clock.ino.cpp.o" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\libraries\\LiquidCrystal\\LiquidCrystal.cpp.o" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\libraries\\Time\\DateStrings.cpp.o" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\libraries\\Time\\Time.cpp.o" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/..\\..\\cores\\arduino_avr_nano_cpu_atmega328old_1ae55d1f58e9e3fa5b67e1bbc72f629f\\core.a" "-LC:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286" -lm
"C:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.eep"
"C:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf" "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.hex"
Multiple libraries were found for "LiquidCrystal.h"
  Used: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal
  Not used: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\libraries\LiquidCrystal
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal 
Using library Time at version 1.6.1 in folder: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time 
Using library EEPROM at version 2.0 in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM 
Using library Wire at version 1.0 in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire 
"C:\\Users\\ZombieArmor9212\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\ZombieArmor9212\\AppData\\Local\\Temp\\arduino\\sketches\\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf"
Sketch uses 12386 bytes (40%) of program storage space. Maximum is 30720 bytes.
Global variables use 997 bytes (48%) of dynamic memory, leaving 1051 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b57600 -D "-Uflash:w:C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf2

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

No point in messing with your code, your Arduino is not connected. Check/change cables, try another Arduino, change USB ports if you can, all the usual drill.

my Arduino IS connected and I uploaded the code.
But the main problem is:
my stupid lcd is not showing anything, last time is was showing random gibberish

Okay, have it your way.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf2
avrdude: stk500_recv(): programmer is not responding

is definitive.

Perhaps someone else can convince you. I'm done.

It is not connected and you code didn't upload.
This message is prove for it:

alright but now i uploaded it but my stoopid LCD is not showing [and yes, i meant to spell stupid like that]

im uploading a video to my drive for proof

video: VID20231109192334.mp4 - Google Drive

Show the updated IDE message.

Programs do what the programmer wrote. If the display is not broken, then with the correct code it would work. If it doesn't work, then the code is incorrect. There is no other way.

if the code was incorrect, the compiler would give me an error
CODE

**
  // include the library
  #include <LiquidCrystal.h>
  #include <Time.h>
  #include <TimeLib.h>
  #include <EEPROM.h>
  #include <Arduino.h>
  #include <Wire.h>
  String months[12] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
  String dayofweek[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
  String setModes[6] = { "Seconds", "Minutes", "Hours", "Date", "Month", "Year" };
  unsigned long setTimeInt[6] = { 1, 60, 3600, 86400 , 2629743, 31556926 };
  int setMode = 0;
  tmElements_t my_time;   // time elements structure
  time_t unix_timestamp;  // a timestamp

  #define TIME_HEADER 255  // Header tag for serial time sync message
  #define TIME_HEADER "T"  // Header tag for serial time sync message
  #define TIME_REQUEST 7   // ASCII bell character requests a time sync message

  String zero = "0";
  String one = "1";
  String two = "2";
  String three = "3";
  String four = "4";
  String five = "5";
  String six = "6";
  String seven = "7";
  String eight = "8";
  String nine = "9";




  int Tmonth = month();
  String date = String(((day() / 10) % 10)) + String((day() % 10));
  String yearLib = String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));
  String stringTime = dayofweek[dayOfWeek(unix_timestamp % 7)] + ", " + String((hour() / 10) % 10) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10));
  String stringDate = months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));

  void updateTime() {
  stringTime =dayofweek[ dayOfWeek(unix_timestamp  % 7 )] + ", " + String((hour() / 10) % 10) + String((hour() % 10)) + ":" + String(((minute() / 10) % 10)) + String((minute() % 10)) + ":" + String(((second() / 10) % 10)) + String((second() % 10));
  stringDate = months[Tmonth - 1] + " " + String(((day() / 10) % 10)) + String((day() % 10)) + ", " + String(((year() / 1000) % 10)) + String(((year() / 100) % 10)) + String(((year() / 10) % 10)) + String((year() % 10));
  }

  void convertUnixTime() {
    my_time.Second = second();
    my_time.Hour = hour();
    my_time.Minute = minute();
    my_time.Day = day();
    my_time.Month = month();
    my_time.Year = year() - 1970;  // years since 1970, so deduct 1970
    unix_timestamp = makeTime(my_time);
    Tmonth = month();
  }

  // initialize the interface pins
  const int rs = 12, en = 11, rw = 10, d0 = 9, d1 = 8, d2 = 7, d3 = 6, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

  LiquidCrystal lcd(rs, en, rw, d0, d1, d2, d3, d4, d5, d6, d7);

  void digitalClockDisplay() {
    // digital clock display of the time
    Serial.print(hour());
    printDigits(minute());
    printDigits(second());
    Serial.print(" ");
    Serial.print(day());
    Serial.print(" ");
    Serial.print(month());
    Serial.print(" ");
    Serial.print(year());
    Serial.print(" ");
    Serial.print("A0,A1,A2 ");
    Serial.print(digitalRead(A0));
    Serial.print(" ");
    Serial.print(digitalRead(A1));
    Serial.print(" ");
    Serial.print(digitalRead(A2));
    Serial.print(" ");
    Serial.print("setTimeInt = " + String(setTimeInt[setMode % 6]));
    Serial.println(" SetMode mod 6 = " + String(setMode % 6));
  }

  void printDigits(int digits) {
    // utility function for digital clock display: prints preceding colon and leading 0
    Serial.print(":");
    if (digits < 10)
      Serial.print('0');
    Serial.print(digits);
  }


  void processSyncMessage() {
    unsigned long pctime;
    const unsigned long DEFAULT_TIME = 1357041600;  // Jan 1 2013

    if (Serial.find(TIME_HEADER)) {
      pctime = Serial.parseInt();
      if (pctime >= DEFAULT_TIME) {  // check the integer is a valid time (greater than Jan 1 2013)
        setTime(pctime);             // Sync Arduino clock to the time received on the serial port
      }
    }
  }

  time_t requestSync() {
    Serial.write(TIME_REQUEST);
    return 0;  // the time will be sent later in response to serial mesg
  }

  void eepromSetDateTime(int hours, int minutes, int seconds, int date, int month, int year) {
    EEPROM.write(0, hours);
    EEPROM.write(1, minutes);
    EEPROM.write(2, seconds);
    EEPROM.write(3, date);
    EEPROM.write(4, month);
    EEPROM.write(5, year);
  }

  void changeMode() {
  lcd.begin(20, 4 ,LCD_8BITMODE);
  digitalClockDisplay();
  updateTime();
    lcd.clear();
    setMode = setMode + 1;
    while (digitalRead(A2) == HIGH) {
      eepromSetDateTime(hour(), minute(), second(), day(), month(), year());
      lcd.setCursor(0, 0);
      lcd.print("Set Time: " + setModes[setMode % 6]);
      lcd.setCursor(0, 1);
      lcd.print(stringTime);
      lcd.setCursor(0, 2);
      lcd.print(stringDate);
    }
  }



  //
  //
  //SETUP
  void setup() {

    lcd.begin(20,4,LCD_5x8DOTS  );
    lcd.clear();

    convertUnixTime();
    setTime(EEPROM.read(0), EEPROM.read(1), EEPROM.read(2), EEPROM.read(3), EEPROM.read(4), EEPROM.read(5));
    Serial.begin(9600);


    lcd.setCursor(4, 0);
    lcd.print("Initializing");
    lcd.setCursor(6, 1);
    lcd.print("Clock...");
    delay(1500);
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("Your clock seems to");
    delay(500);
    lcd.setCursor(0, 1);
    lcd.print("be out of date");
    delay(500);

    lcd.setCursor(0, 2);
    lcd.print("Please set the clock");
    lcd.setCursor(0, 3);
    delay(500);
    lcd.print("NOW");
    delay(3500);
    lcd.clear();
  }





  //
  //
  //LOOP
  void loop() {
  updateTime();
  setMode = 1;

    //set time feature
    if (digitalRead(A1) == HIGH) {
      lcd.begin(20, 4 ,LCD_5x8DOTS);
      digitalClockDisplay();
      updateTime();
      setMode = 0;
      lcd.clear();
      
      
  updateTime();
        lcd.setCursor(0, 0);
        lcd.print("Set Time: " + setModes[setMode % 6]);
        lcd.setCursor(0, 1);
        lcd.print(stringTime);
        lcd.setCursor(0, 2);
        lcd.print(stringDate);
      
        //changes set time mode
        if (digitalRead(A2) == HIGH) {
          changeMode();
        }
      

  digitalClockDisplay();

      //increments time
      if (digitalRead(A0) == HIGH) {
  digitalClockDisplay();
        

        if (setTimeInt[setMode % 6] > 10000) {
          for (int x = 0; x < (setTimeInt[setMode % 6] / 3600); x++) {
            unix_timestamp = unix_timestamp + 3600;
          }
        } else {
          unix_timestamp = unix_timestamp + setTimeInt[setMode % 6];
          setTime(unix_timestamp);
        }
      }
  digitalClockDisplay();

      lcd.clear();
      while (digitalRead(A0) == HIGH) {
        updateTime();
        lcd.setCursor(0, 0);
        lcd.print("Set Time: " + setModes[setMode % 6]);
        lcd.setCursor(0, 1);
        lcd.print(stringTime);
        lcd.setCursor(0, 2);
        lcd.print(stringDate);
        digitalClockDisplay();
        //shows the TIME
      digitalClockDisplay();
      }
      
      //end of whileA0
      lcd.clear();
    }
    //end



  updateTime();
    convertUnixTime();
        lcd.setCursor(0, 0);
        lcd.print(stringTime);
        lcd.setCursor(0, 1);
        lcd.print(stringDate);

    if (Serial.available()) {

      processSyncMessage();
      lcd.clear();
      convertUnixTime();
    }
    if (timeStatus() != timeNotSet) {
      digitalClockDisplay();
      convertUnixTime();
    }
  }
**

OUTPUT/LOG

FQBN: arduino:avr:nano:cpu=atmega328old
Using board 'nano' from platform in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
-> candidates: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for TimeLib.h: [Time@1.6.1]
ResolveLibrary(TimeLib.h)
-> candidates: [Time@1.6.1]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
-> candidates: [EEPROM@2.0]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time\DateStrings.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time\Time.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Generating function prototypes...
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src -IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp -o C:\Users\ZombieArmor9212\AppData\Local\Temp\3589374516\sketch_merged.cpp
C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\ZombieArmor9212\AppData\Local\Temp\3589374516\sketch_merged.cpp
Compiling sketch...
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs" "-IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal\src" "-IC:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time" "-IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src" "-IC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp" -o "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp.o"
Compiling libraries...
Compiling library "LiquidCrystal"
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\LiquidCrystal\LiquidCrystal.cpp.o
Compiling library "Time"
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Time\DateStrings.cpp.o
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Time\Time.cpp.o
Compiling library "EEPROM"
Compiling library "Wire"
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Wire\utility\twi.c.o
Using previously compiled file: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Wire\Wire.cpp.o
Compiling core...
Using precompiled core: C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\cores\arduino_avr_nano_cpu_atmega328old_1ae55d1f58e9e3fa5b67e1bbc72f629f\core.a
Linking everything together...
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\sketch\LCD-Clock.ino.cpp.o" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\LiquidCrystal\LiquidCrystal.cpp.o" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Time\DateStrings.cpp.o" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Time\Time.cpp.o" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Wire\Wire.cpp.o" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286\libraries\Wire\utility\twi.c.o" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/..\..\cores\arduino_avr_nano_cpu_atmega328old_1ae55d1f58e9e3fa5b67e1bbc72f629f\core.a" "-LC:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286" -lm
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.eep"
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf" "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.hex"
Multiple libraries were found for "LiquidCrystal.h"
Used: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal
Not used: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\libraries\LiquidCrystal
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\LiquidCrystal
Using library Time at version 1.6.1 in folder: C:\Users\ZombieArmor9212\Documents\Arduino\libraries\Time
Using library EEPROM at version 2.0 in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM
Using library Wire at version 1.0 in folder: C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.elf"
Sketch uses 12386 bytes (40%) of program storage space. Maximum is 30720 bytes.
Global variables use 997 bytes (48%) of dynamic memory, leaving 1051 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b57600 -D "-Uflash:w:C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\ZombieArmor9212\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM3
     Using Programmer              : arduino
     Overriding Baud Rate          : 57600
     AVR Part                      : ATmega328P
     Chip Erase delay              : 9000 us
     PAGEL                         : PD7
     BS2                           : PC2
     RESET disposition             : dedicated
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     ByteDelay                     : 0
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
       flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
       lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

     Programmer Type : Arduino
     Description     : Arduino
     Hardware Version: 2
     Firmware Version: 1.16
     Vtarget         : 0.0 V
     Varef           : 0.0 V
     Oscillator      : Off
     SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\ZombieArmor9212\AppData\Local\Temp\arduino\sketches\B3F4984BBB25F53995F0867834B6E286/LCD-Clock.ino.hex"
avrdude: writing flash (12386 bytes):

Writing | ################################################## | 100% 3.34s

avrdude: 12386 bytes of flash written

avrdude done. Thank you.

This is wrong suggestion.
The compiler only looks for syntax errors. The situation when the code compiles but does not work is very typical. This means that there are logical errors in the code.
Identifying and correcting such errors is called debugging. Debugging often takes several times longer than writing code itself.