strftime


The following program demonstrates the strftime library function, which is a sprintf-like function specifically for the formatting date and time represented by a struct tm.

The program uses strftime to create a timestamp string.

strftime.c