'setTime' was not declared in this scope

I don't understand how I got there but I did. You were right and it works fine now. Thanks