请问可以把altm->tm_mday
转成字符串吗?
我试过这个,但是,这行不通!
time_t now = time(0);
tm *ltm = localtime(&now);
String dateAjoutSysteme = ltm->tm_mday + "/" + (1 + ltm->tm_mon) + "/" + (1900 + ltm->tm_year) + " " + (1 + ltm->tm_hour) + ":" + (1 + ltm->tm_min) + ":" + (1 + ltm->tm_sec);