setTime was not declared in this scope? Help

So I'm making a clock and timer using arduino and i have all the code ready and setup but when i try to compile, it says setTime was not declared in this scope.

This is not the full code as its too long, just the beginning where the error is stated. I can post the full code if needed.
the set time is highlighted in bold.

#include <LiquidCrystal.h>
#include <Time.h>
#include <Wire.h>

int buttonPin2 = 3;
int buttonPin3 = 2;
int buzzerPin = 13;

int tSeconds=10, tMinutes=0, hours=0;
int centiseconds=0, sSeconds=0, sMinutes=0;

int button1Counter = 0;
int button1State = 0;
int lastButton1State = 0;
int button2Counter = 0;
int button2State = 0;
int lastButton2State = 0;

LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

void setup()
{

lcd.begin(16, 2);
setTime(17,40,00,19,04,2017);
pinMode(buttonPin1, INPUT_PULLUP);
pinMode(buttonPin2, INPUT_PULLUP);
pinMode(buttonPin3, INPUT_PULLUP);
pinMode(buzzerPin, OUTPUT);
}

exit status 1
'setTime' was not declared in this scope
this is the full error code

Do you have the Time library installed in the proper place? The error message is saying that it cannot find the setTime() function, which is defined in the time.cpp file. I don't think Time is a standard library shipped with the IDE. If not, you will have to install that library.

Also, please read Nick Gammon's post at the top of the Forum on the use of code tags when posting source code.

Ok i changed the Time.h library to TimeLib.h and that seemed to sort out the error. However now I'm getting an error saying

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

I dont have an arduino connected to my computer as this is a uni project so I have to take it to class and connect it up, is this error because I dont have anything connected or something else?

Those are the last lines of the error messages. Read all that go before them.

Pete