Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi,
I'm having problems with decoding the month and year...
today Sun Oct 31 19:15:01 2010, gives as result da:31,mo:9,ye:110
tm * timeinfo;
ctTime = time(NULL);
timeinfo = localtime(&ctTime);
da=timeinfo->tm_mday;
mo=timeinfo->tm_mon;
ye=timeinfo->tm_year;
Anybody a solution?