468,315 Members | 1,351 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

Always local Time & date format?

Is there a script available that would re-format a time & date always
according to the users' setting?

Some setting that would be read by the language set in the browser or from
the IP?

thanks!

Oliver

Jul 17 '05 #1
2 1717
Oliver Spiesshofer <ol****@email.com> wrote in
news:Xn***************************@63.223.5.246:
Is there a script available that would re-format a time & date always
according to the users' setting?

Some setting that would be read by the language set in the browser or
from the IP?


to specify: The important thing here is not the time difference but more
the language issues of the months and days)

thanks

Oliver

Jul 17 '05 #2
*** Oliver Spiesshofer wrote/escribió (Fri, 12 Nov 2004 11:00:55 GMT):
to specify: The important thing here is not the time difference but more
the language issues of the months and days)


Try this:

setlocale(LC_TIME, 'es_ES');
strftime('%A %e de %B de %Y (%H:%M)');

Maybe you can create an array with the available locales in your server and
another one with the formats.

--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Li Pang | last post: by
2 posts views Thread by Bill Nguyen | last post: by
13 posts views Thread by maflatoun | last post: by
6 posts views Thread by Mike Charney | last post: by
2 posts views Thread by psycho | last post: by
7 posts views Thread by Rob Nicholson | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.