changing clock/date setting on Real Time Clock pcf8563 [solved]

mark7w:
I dont think it's as simple as that. It looks like I need to set some sort of pointer to each of the variables "hour", "min","sec".

I don't see any pointers involved or needed here.

byte hr,min,sec;
void loop() {
   ... // warning untested code :)
   if (incrementMinuteButtonPressDectected) min = ++min % 60 // increment and rollover past 59
   if (decrementMinuteButtonPressDectected) min = (--min + 60) % 60 // decrement and rollunder past 0
   ...
   rtc.setTime( sec, min, hr);
   ...
}