1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
/* wcsftime example */
#include <wchar.h>
#include <time.h>
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.",timeinfo);
wprintf (L"%ls\n",buffer);
return 0;
}
|