Always local Time & date format?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oliver Spiesshofer

    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

  • Oliver Spiesshofer

    #2
    Re: Always local Time & date format?

    Oliver Spiesshofer <oliver@email.c om> wrote in
    news:Xns959F792 67CC9oliveremai lcom@63.223.5.2 46:
    [color=blue]
    > 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?[/color]

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

    thanks

    Oliver

    Comment

    • Alvaro G Vicario

      #3
      Re: Always local Time &amp; date format?

      *** Oliver Spiesshofer wrote/escribió (Fri, 12 Nov 2004 11:00:55 GMT):[color=blue]
      > to specify: The important thing here is not the time difference but more
      > the language issues of the months and days)[/color]

      Try this:

      setlocale(LC_TI ME, '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
      --

      Comment

      Working...