7 segment Display Watch

The array part is easy. Assuming you want a 1 to turn on a segment:

// pre-setup code
// array of segments to turn on
//B = binary, with bits= decimal point-g-f-e-d-c-b-a
segmentArray[] = {
B00111111, // 0       a
B00000110, // 1    f      b
B01101011, // 2       g
B01001111, // 3    e     c
B01100110, // 4       d
B01101101, // 5
B01011111, // 6
B00000111, // 7
B01111111, // 8
B01101111, // 9
};
// array of pins to turn on
byte pinArray[] = {2,3,4,5,6,7,8,9};
// 9 = Decimal point, 8=g, 7=f, 6=e,5=d, 4=c, 3=b, 2=a
// loop code, or a function
// display a digit
// assumes numberToDisplay is assigned/passed on:
maskBit = 0x01; // masks off all but segment A to start
for (x = 0; x<8; x=x+1){
// for x=0: write pin 2 with (B00000001 & numberToDisplay) to turn on/off segment A
// then 3 with B00000010 & numberToDisplay for segment B, etc.
digitalWrite (pinArray[x], (segmentArray[numberToDisplay] & maskBit) ); 
maskBit = maskBit <1; // move the bit 1 left to mask for next segment
}