@PasserBy is a bit mean. Of course: The C standard library is part of C++, which makes calls to gmtime() and localtime() perfectly valid C++; it's just not the preferred way, by some. Simply mention the two functions in the title and you'll be fine. The request for a complete (but minimal!) program that can be easily tested is valid though.
↧