12/24 hour clock conversion.

I'm trying to display a 12 hour clock on a liquid crystal display. no matter how I try I keep getting this error...
"cannot resolve overloaded function 'hour' based on conversion to type 'bool'"

#include <Wire.h>
#include <DS3232RTC.h>
#define DS3232RTC.h
#define HR1224 6
#include <Time.h>
#include <Arduino.h>   
#include <LiquidCrystal.h>


LiquidCrystal lcd(12, 11, 5, 4, 3, 2);//RS, E, D4, D5, D6, D7
int RelayL = 8;//Relay Large Tank
int RelayS = 9;//Relay Small Tank
const int HTempSensorPin0 = 4;// A4 Hot Side Large Tank
const int CTempSensorPin2 = 6;// A6 Cold Side Large Tank
const int HTempSensorPin1 = 5;// A5 Hot Side Small Tank
const int CTempSensorPin3 = 7;// A7 Cold Side Small Tank

 
float readTemp(int aPin)
{
  int value = analogRead(aPin);
  float millivolts = (value / 1024.0) * 5000;
  float celcius = millivolts / 10;
  return (celcius * 9) / 5 + 32;
}

void setup()
{
  Serial.begin(9600);
  setSyncProvider(RTC.get);   //  tells the Time library where it can get the time from
  pinMode(RelayL,OUTPUT);  
  pinMode(RelayS,OUTPUT);
  lcd.begin(20, 4);
  lcd.setCursor(4, 1);
  lcd.print("Loading...");
  lcd.setCursor(4, 2);
  lcd.print("Please Wait");
  {
    delay(1000);
  }
  {
    lcd.clear();
  }
  lcd.begin(20, 4);
  lcd.setCursor(7, 1);
  lcd.print("Done");
  {
    delay(700);
  }
  {
    lcd.clear();
  }
}

void loop()
{
  {
  char buffer[10];
  time_t t = now();  
    
  sprintf(buffer, "%02d:%02d:%02d", hour(t), minute(t), second(t));

  Serial.println(buffer);
  Serial.println(" ");
  Serial.println("Hot Side Large Tank");
  Serial.println(readTemp(HTempSensorPin0));
  Serial.println(" ");
  Serial.println("Cold Side Large Tank");
  Serial.println(readTemp(CTempSensorPin2));
  Serial.println(" ");
  Serial.println("Hot Side Small Tank");
  Serial.println(readTemp(HTempSensorPin1));
  Serial.println(" ");
  Serial.println("Cold Side Small Tank");
  Serial.println(readTemp(CTempSensorPin3));
  Serial.println(" ");
  }
   { 
    if (hour()<12)
    {     
      lcd.setCursor(0, 3);
      lcd.print(hour());
      lcd.setCursor(2,3);
      lcd.print(":");
      lcd.print(minute());
      lcd.setCursor(6,3);
      lcd.print("AM"); 
    }
    if (hour()>=12)
    {
      lcd.setCursor(0, 3);
      lcd.print(hour());
      lcd.setCursor(2,3);
      lcd.print(":");
      lcd.print(minute());
      lcd.setCursor(6,3);
      lcd.print("PM");
    }
    
    if (minute()<10)
    {
      lcd.setCursor(0, 3);
      lcd.print(hour());
      lcd.setCursor(2,3);
      lcd.print(":");
      lcd.setCursor(3,3);
      lcd.print("0");
      lcd.print(minute());
    }
    if (minute()>=10)
    {
      lcd.setCursor(0, 3);
      lcd.print(hour());
      lcd.setCursor(2,3);
      lcd.print(":");
      lcd.setCursor(3,3);
      lcd.print(minute());
    }

  
    lcd.setCursor(2, 1);
    lcd.print(readTemp(HTempSensorPin0));//LG TANK HOT
    lcd.print("F");//Fahrenheit
    lcd.setCursor(0, 0);
    lcd.print("LG Tank");//Tank
    lcd.setCursor(0, 1);
    lcd.print("H");//Hot
    
      
    lcd.setCursor(2, 2);
    lcd.print(readTemp(CTempSensorPin2));//LG TANK COLD
    lcd.print("F");//Fahrenheit
    lcd.setCursor(0,2);
    lcd.print("C");//Cold
    
    lcd.setCursor(13, 1);
    lcd.print(readTemp(HTempSensorPin1));//SM TANK HOT
    lcd.print("F");//Fahrenheit
    lcd.setCursor(11,0);
    lcd.print("SM Tank");//Tank
    lcd.setCursor(11, 1);
    lcd.print("H");//Hot
    
    
    lcd.setCursor(13, 2);
    lcd.print(readTemp(CTempSensorPin3));//SM TANK COLD
    lcd.print("F");//Fahrenheit
    lcd.setCursor(11, 2);
    lcd.print("C");//Cold
 
    delay(1000);
  }
  
     if (hour() >= 8 && readTemp(HTempSensorPin0) >=97)//=F  100F or 37.78C         8 AM
   {
     digitalWrite(8,LOW);
   }
    if (hour()<=20 && readTemp(HTempSensorPin0) <=88)//=F 88F or 31.11C              8 PM
   {
     digitalWrite(8,HIGH);
   }
   
   if (hour() >= 8 && readTemp(HTempSensorPin1) >=97)//=F 100F or 37.78C            8 AM
   {
     digitalWrite(9,LOW);
   }
   if (hour() <= 20 && readTemp(HTempSensorPin1) <=88)//=F 88F or 31.11C             8PM
   {
     digitalWrite(9,HIGH);
   }
   if (hour() >= 20 && readTemp(HTempSensorPin0) >=87)//=F 100F or 37.78C            12 AM
   {
     digitalWrite(8,LOW);
   }
   if (hour() <= 8 && readTemp(HTempSensorPin0) <=78)//=F 88F or 31.11C             8AM
   {
     digitalWrite(8,HIGH);
   }
   if (hour() >= 20 && readTemp(HTempSensorPin1) >=87)//=F 100F or 37.78C            12 AM
   {
     digitalWrite(8,LOW);
   }
   if (hour() <= 8 && readTemp(HTempSensorPin1) <=78)//=F 88F or 31.11C             8AM
   {
     digitalWrite(8,HIGH);
   }
   if (hour() >= 20 && readTemp(HTempSensorPin0) >=87)//=F 100F or 37.78C            8PM
   {
     digitalWrite(8,LOW);
   }
   if (hour() <= 8 && readTemp(HTempSensorPin0) <=78)//=F 88F or 31.11C             12AM
   {
     digitalWrite(8,HIGH);
   }
   if (hour() >= 20 && readTemp(HTempSensorPin1) >=87)//=F 100F or 37.78C            8PM
   {
     digitalWrite(8,LOW);
   }
   if (hour() <= 8 && readTemp(HTempSensorPin1) <=78)//=F 88F or 31.11C             12AM
   {
     digitalWrite(8,HIGH);
  }
}

In what line please? The compiler tells you.

Also, the Time library has a 12 hour conversion built in:

int     hourFormat12();    // the hour now in 12 hour format

It would behoove you to use it.

I was trying to add it to between line 77 and 78.
Something like...

{
If (hour()<12)
{
hour()=hour()-12;
}

I also tried adding
int hourFormat12();

I got it. I was missing hourFormat12() in one of the display settings.

  {
    delay(1000);
  }
  {
    lcd.clear();
  }

{
The
}
{
curly
}
{
braces
}
{
are
}
{
useless
}

robmawe91:
I got it. I was missing hourFormat12() in one of the display settings.

You didn't get it. It's not a setting. It's a way of fetching the hour data.