爱普生me1 清零

编程
#include
#include
int main()
{
int year;
time_t t;
int days;
int seconds;
【爱普生me1 清零】t = time(NULL);
struct tm *gmt;
gmt = gmtime(&t);
year = gmt->tm_year+1900;
//Calculate days
days = (year-1970)*365;
if (year%4 == 0 && (year%100 != 0 || year%400 == 0))
{
days++;
}
//Calculate seconds
seconds = days*24*60*60;
printf(“The current time is since 1970-01-01 00:00:00 UTC has %d days and %d seconds\n”,days,seconds);
return 0;
}