Xe-Release/XeRelease_Gtkmm4/src/xeapi.cc

10 lines
275 B
C++
Raw Normal View History

2021-06-24 20:36:12 +08:00
#include"xeapi.hh"
int xeapi1(struct tm *local){
int year1=2019,month1=6,apiver=0;
int year2=local->tm_year+1900,month2=local->tm_mon+1;
//printf("%d %d",year1,year2);
apiver=(year2-year1)*12-month1+month2+22;
2022-01-01 00:08:29 +08:00
//if(local->tm_mday<7) apiver--;
2021-06-24 20:36:12 +08:00
return apiver;
}