I have a time_t value from which I need to extract the values for year, month, dayOfMonth, hourOfDay, minute & second (as integers). If possible I'd like to minimize my reliance on libraries, but if there is a library function you can be reasonably certain will always be available then that'd be fine. The time_t value should already have been adjusted for timezone, so no worry about that.
Due to working in a rather large company project and using a remote server to build the application, I actually don't know which version of C++ we are using but it's most likely C++11 (possibly C++98 but I doubt it, and almost certainly not C++17).