[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Current date in italian language?



As I got no reply to my previous e-mail, I'm trying with a slightly
different question.

Is there any OS-supported way to print the current date in Italian
language?

I tried with the following code but with no result:

clock = time(0);
tm = localtime( &clock );
setlocale( LC_TIME, "it" );
strftime( buff, sizeof(buff), "%c", tm );

Thanks.


Federico Giannici wrote:
> 
> Is setlocale() supposed to work?
> 
> I used setlocale(LC_TIME, "it") but then the strftime() strings remained
> in english...
> 
> If setlocale() is supposed to work, what could I miss?
> 
> Thanks.