I find it hard to believe this isn't on the website, yet I can't seem to find it.
I would like a function that takes in a format and a number, and returns a string of the date, i.e.
std::string date = DateFromSecondsSinceEpoch("yyyy-mm-dd hh:mm:ss", 1000000000); //2001-09-09 01:46:40
//or
std::string date = DateFromSecondsSinceEpoch("yyyy-mm-dd", 1000000000); //2001-09-09
With a function signature such as:
std::string DateFromSecondsSinceEpoch(const char* format, const long long int seconds);