public
Created

Howto check dates ...

  • Download Gist
gistfile1.c
C
1
int doy(int d,int m,int j){return (m>0&&m<13&&d>0&&d<(m-2?(m+(m>7))%2+31:(!(j%400)||!(j%4)&&j%100)+29))*(d+(((m--)+(m>7))/2)+m*30-(m>1)*(2-(!(j%400)||!(j%4)&&j%100)));}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.