Now the example compiles using the latest ctrulib. It also uses standard C Time library to get date and time