[Solved] using a mask bit dallas rtc

CrossRoads:
I like using a more direct approach:

value = value | B01000000; // set bit 6
value = vaue & B10111111; // clear bit 6

I often do this to clear/set a PORTx pin for SPI transfers, vs doing a digitalWrite of a pin.
PORTD = PORTD & B11111011; // using PD2 for SS pin
SPI.transfer(someValue); // transfer the data
PORTD = PORTD | B00000100; // SS pin high

hmm, interesting. very. im gonna toy around with this especially since ive seen your work before and like it alot. thx crossroads.