Advertisement

greenhat

image

Biography has not been added

greenhat

's contributions
Articles
Comments
    • Nice article. I couple of things I noticed. should the last parentheses in int xRef[NUM_DAYS_IN_WEEK] = {0,6,5,4,3,2,1); be a curly bracket, like this? int xRef[NUM_DAYS_IN_WEEK] = {0,6,5,4,3,2,1}; Also, Should the displayHour() function also include a check for the months between MARCH and NOVEMBER to display Daylight Savings? Like this: if ((((month >= MARCH) && (day >= startDayDST) && (hour >= 2)) && ((month <= NOVEMBER) && (day <= endDayDST) && (hour <= 2))) || (month > MARCH && month < NOVEMBER)) { Otherwise, it looks like DST only applies to MARCH (after the 2nd Sunday) and to NOVEMBER (before the 1st Sunday) Thanks again!