size_t strftime (char* ptr, size_t maxsize, const char* format,const struct tm* timeptr );
#include <time.h>
time_t rawtime;
struct tm * timeinfo;
char buffer [80];
time (&rawtime);
timeinfo = localtime (&rawtime);
strftime (buffer,80,"Now it's %I:%M%p.",timeinfo);