Is there a cross-platform way to get the current date and time in C++?
http://www.cplusplus.com/reference/ctime/strftime/
This built-in seems to offer a reasonable set of options.