You are not showing us the whole picture here. The error messages indicate that you have two files (tabs) open in the IDE, rtc_clock.ino and water pump.ino.
Spades101:
Do ardiuno file have to be saved within different folders?
Each sketch must be in its own folder. A sketch may consist of multiple files. But you can't put multiple separate sketches in the same folder together because they will all be compiled, resulting in redefinition errors like you got.
Spades101:
when i run my program the serial print does not print the time
"Serial.print("Time: ");
Serial.println(rtc.getTimeStr());//prints current time"
but rather
"
Time:
"
followed by nothing
Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.