Zeroing seconds with the Arduino Time library?

Ok this works:

    //Set the seconds to zero
    setTime(t);
    int seconds = t % 60;
    t -= seconds;
    //Finally set the selected time
    setTime(t);

I have no idea why this works but it works. :-?