计算两个日期间相差的天数
printf("%d",Abs(get(Y,M,D)-get(y,m,d))); int get(int y,int m,int d){ if(m<3){ --y; m+=12; } return 365*y+y/4 - y/100+y/400+(153*m - 457)/5+d - 306; }
printf("%d",Abs(get(Y,M,D)-get(y,m,d))); int get(int y,int m,int d){ if(m<3){ --y; m+=12; } return 365*y+y/4 - y/100+y/400+(153*m - 457)/5+d - 306; }