How to use the 'set_time function'?

02 Aug 2011

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.

  1. include "mbed.h"

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.

02 Aug 2011

Please excuse the post above......I have just found the mktime function.

My apologies everyone!