'setTime' was not declared in this scope

You have to download an updated version of the time library; I suspect that yours is antique.

After that, you have to include TimeLib.h instead of Time.h.