/* strftime example */ #include /* puts */ #include /* time_t, struct tm, time, localtime, strftime */ int main () { time_t rawtime; struct tm * timeinfo; wchar_t buffer [80]; time (&rawtime); timeinfo = localtime (&rawtime); wcsftime (buffer, 80, L"Now it's %I:%M%p. %Z", timeinfo); wprintf (L"%ls\n", buffer); return 0; }