Re: [AD] next hack day

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, 2008-03-27 at 13:19 +0000, Peter Hull wrote:
> Just wondering when the next one was, given that the 1st April is on a
> Tuesday. We could go for 29th March or 5th April? I am definitely at
> home on 29th but not sure about the following week, FWIW.
> 

So far the formula used was:

for (int i = 1; i <= 31; i++) {
    if (day(i) == Saturday) {
        printf("%dth\n", i);
        break;
    }
}

so that would be 5th :) I was absent from #allegro-dev lately, but I'll
look into the channel on both dates.

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/