Wednesday, September 21, 2011

strftime c

 #include <time.h>

size_t strftime(char *buf,
                size_t max,
                const char *format,
                const struct tm *tm);

The arguments buf and max indicate the output buffer and its maximum length respectively. The argument format is an input string that allows you to format a date and time string. Finally, argument tm is used to supply all the date and time components necessary to create the output date and time string. Review the man page for strftime(3) if you need to.


No comments:

Post a Comment