expected unqualified-id before '.' token

Hi new to Arduino and this forum. I'm getting an error message of expected unqualified-id before '.' token.

Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino:432:3: warning: character constant too long for its type

'RTC_DS1307'.setDS1302Time(00, MinNew, HourNew, 6, 10, 1, 2014);

^

C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void relayAction(int, int, int, int)':

arduino-timer-relay:138:13: error: expected unqualified-id before '.' token

RTC_DS1307.updateTime();

^

arduino-timer-relay:139:19: error: 'RTC' was not declared in this scope

int MinToday = (RTC.hours * 60) + RTC.minutes;

^

C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void setRTC()':

arduino-timer-relay:184:28: error: expected primary-expression before '.' token

setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 0);

^

arduino-timer-relay:184:46: error: expected primary-expression before '.' token

setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 0);

^

arduino-timer-relay:189:13: error: expected unqualified-id before '.' token

RTC_DS1307.updateTime();

^

arduino-timer-relay:190:28: error: expected primary-expression before '.' token

setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 1);

^

arduino-timer-relay:190:46: error: expected primary-expression before '.' token

setupShowValue(RTC_DS1307.hours, RTC_DS1307.minutes, 1);

^

arduino-timer-relay:192:36: error: expected primary-expression before '.' token

setupChooseValueSetRTC(RTC_DS1307.hours, RTC_DS1307.minutes, 1);

^

arduino-timer-relay:192:54: error: expected primary-expression before '.' token

setupChooseValueSetRTC(RTC_DS1307.hours, RTC_DS1307.minutes, 1);

^

C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void setupChooseValueSetRTC(int, int, byte)':

arduino-timer-relay:432:16: error: request for member 'setDS1302Time' in '12343', which is of non-class type 'int'

'RTC_DS1307'.setDS1302Time(00, MinNew, HourNew, 6, 10, 1, 2014);

^

C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino: In function 'void displayTime()':

arduino-timer-relay:476:13: error: expected unqualified-id before '.' token

RTC_DS1307.updateTime();

^

arduino-timer-relay:477:26: error: expected primary-expression before '.' token

print2digits(RTC_DS1307.hours);

^

arduino-timer-relay:479:26: error: expected primary-expression before '.' token

print2digits(RTC_DS1307.minutes);

^

arduino-timer-relay:481:26: error: expected primary-expression before '.' token

print2digits(RTC_DS1307.seconds);

^

exit status 1
expected unqualified-id before '.' token

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any help would be greatly appreciated. Its a copied sketch that i've changed from virtuabotixRTC to RTClib, as i was having trouble with locating virtuabotixRTC in my files when i #include <virtuabotixRTC.h> in the sketch it was say the file wasn't located.

The RTC library is correctly installed?

Use CTRL T to format your code.
Attach your ‘completek sketch between code tags.
Use the </> icon in the posting menu:

[code]Paste your sketch here[/code]

The first error:

C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino:432:3: warning: character constant too long for its type

   'RTC_DS1307'.setDS1302Time(00, MinNew, HourNew, 6, 10, 1, 2014);

   ^

is being caused by the single-quote (') on either side of RTC_DS1307. When you remove those, you'll replace that error with one of the same sort as all the rest.

I'm going to venture that you haven't declared a variable of the type RTC_DS1307. If you don't have one now, add a line like this above setup():

RTC_DS1307 RTC;

Then, everywhere else in your code where you use "RTC_DS1307", replace it with "RTC". For example

RTC_DS1307.updateTime();

becomes

RTC.updateTime();

You already have some calls using "RTC":

 int MinToday = (RTC.hours * 60) + RTC.minutes;

Those should be okay once you add a variable RTC of type RTC_DS1307.