心有法竹
UTC+8=北京时间char days[]={0,31,28,31,30,31,30,31,31,30,31,30,31};if((year%400==0)||((year%100!=0)&&(year%4==0))) // leap yeardays[2]=29;hour-=8;if(hour<0){hour+=24;day--;if(day<0){month--;if(month<0){month=12;year--;}day=days[month];}}minute,seconds肯定是不变的...