Q&A is closed
size_t strftime(char *str, size_t maxsize, const char *format, const struct tm *timeptr);