mercredi 25 janvier 2017

C++11 Reformatting time output

I'm relatively new to C++ so bare with me.

I have a function of a library which returns a time. The syntax of the function is this:

double time = iTime("USDJPY", 15, 10);

However, I don't know how to reformat the result (double into a human readable format in order to print it out to the console e.g. DD/MM/YY HH:mm:SS

Could someone please show me how to do this.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire