Change include from <time.h> to "strftime.h".