Second, it looks like rtc.getTimeStr should return a string, so the comparison would look like this
Code: [Select]
if(rtc.getTimeStr() == "20:00:00"){}Note the quotes
Thanks Pogo your code was the closest and really play, I played around with it and found thee code that actually work!
String timeString = rtc.getTimeStr();
if (timeString == "20:00:00")
{
}