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

Re: Internationalization in strftime




 Thank you very much! It works properly now.

> > #include <time.h>
> > #include <stdio.h>
>
> #include <locale.h>
>
> > main()
> > {
>
>     setlocale(LC_ALL, "");
>
> >   struct tm time;
> >   char string[1000];
> >   time.tm_mday = 2;
> >   time.tm_mon = 10;
> >   time.tm_year = 106;
> >   strftime(string, 999, "%d/%B/%Y",&time);
> >   printf(" Localized time: %s\n",string);
> > }
> >
 

 Sorry about the disclaimer. I don't write, it is written automatically by the 
SMTP of my company..

----------
ADVERTENCIA: La información incluida en este e-mail es CONFIDENCIAL, siendo para uso exclusivo del destinatario arriba mencionado. Si Usted lee este mensaje y no es el destinatario indicado, le informamos que está totalmente prohibida cualquier utilización, divulgación, distribución y/o reproducción de esta comunicación sin autorización expresa en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos nos lo notifique inmediatamente por esta misma vía a GRAN TELESCOPIO DE CANARIAS, S.A. (gtc@gtc.iac.es) y proceda a su eliminación. 

DISCLAIMER: This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege. If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail to GRAN TELESCOPIO DE CANARIAS, S.A. (gtc@gtc.iac.es) and delete it.



Reply to: