Hello Geeks,
I am working on a program for date,month calculation.
I found this code used to convert to Gregorian format for calculation.
It would be great full for me if anybody can explain this ... like 0.75 yy/4 .4*mm what are these constants why m-1, yy-1 etc..
long xx;
int yy,dd,m;
xx = 365 + yy +dd+31*(m-1)
if(m<3)
xx= xx+((yy-1)/4)-(0.75*(yy-1)/100 + 1);
else
xx = xx-(0.4*mm+2.3)+(yy/4)-(0.75*(yy/100)+1));
Thankyou