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.
Using the C time.h functions and in particular the set_time function, I am trying to figure out what value to enter for today’s date. I can’ t figure it out from the example given, except maybe for the 37 seconds at the end.
int main() { set_time(1256729737); Set time to Wed, 28 Oct 2009 11:35:37 } I suppose my question is how do I calculate the set_time value easily?
Many thanks.