timelib.h problems

      if(digitalRead(tastersprinkler2) == HIGH)
      {
        if(sprinkler2== HIGH)
        {
          sprinkler2 == LOW;
        }
        else
        {
          sprinkler2 == HIGH;
        }
      }

You don't seem to understand when to use == and when to use =. They are NOT interchangeable.

            razlika=(zdaj-pozneje);
            if(minute(razlika)>=2)

What are you expecting the code to do? You are subtracting one number of seconds since 1970 from another number of seconds since 1970. The result is a number of seconds, NOT a number of seconds since 1970.

You are then sending the number of seconds to a function that expects a number of seconds since 1970. Of course that function is going to mis-interpret the value that you pass in.