[Solved] using a mask bit dallas rtc

Untested but something along the line of -

#define setBit(VALUE, BIT)       ((VALUE) |=  (1 << BIT))
#define clearBit(VALUE, BIT)     ((VALUE) &= ~(1 << BIT))