The Time library is installed in the wrong place.
What version of the IDE are you using?
That sketch does not reference the String class, so it's hard to see what your problem is. With the Time library in the correct place, using 1.0, and with the include statement fixed, I get only this "error" message:
Binary sketch size: 9220 bytes (of a 258048 byte maximum)