PHP -Date

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

    #1

    PHP -Date

    Hi All,
    Can we get the date time in the format depends on either country
    code or country name in php.

    Thanks&Regards
    Srilatha.A
  • Toby A Inkster

    #2
    Re: PHP -Date

    sri wrote:
    Can we get the date time in the format depends on either country
    code or country name in php.
    Whose country code? The server? Or the visitor? If the visitor, how do you
    expect to determine the country they are in?

    More to the point, why would you want to? For example, if the whole page
    was written in English, why would a French visitor expect to see the date
    alone written in his native language as "samedi 18.janvier 2008"?

    --
    Toby A Inkster BSc (Hons) ARCS
    [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
    [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 19 days, 24 min.]

    Ham vs Bacon vs Pork

    Comment

    • Luuk

      #3
      Re: PHP -Date


      "Toby A Inkster" <usenet200801@t obyinkster.co.u kschreef in bericht
      news:dcl665-ugb.ln1@ophelia .g5n.co.uk...
      sri wrote:
      >
      alone written in his native language as "samedi 18.janvier 2008"?
      >
      Vendredi 18 Janvier 2008


      Comment

      • Rik Wasmus

        #4
        Re: PHP -Date

        On Fri, 18 Jan 2008 14:15:25 +0100, Toby A Inkster
        <usenet200801@t obyinkster.co.u kwrote:
        sri wrote:
        >
        > Can we get the date time in the format depends on either country
        >code or country name in php.
        >
        Whose country code? The server? Or the visitor? If the visitor, how do
        you
        expect to determine the country they are in?
        >
        More to the point, why would you want to? For example, if the whole page
        was written in English, why would a French visitor expect to see the date
        alone written in his native language as "samedi 18.janvier 2008"?
        Yup, only usefull for total translations (in which case you shouldn't
        check country, but prefer the HTTP_ACCEPT_LAN GUAGE header). Even then,
        non-text data (dates, currencies, numbers) presentation examined quite
        carefully. Often it's just better to stick to a non-language dependant
        uniform presentation for those.
        --
        Rik Wasmus

        Comment

        • Toby A Inkster

          #5
          Re: PHP -Date

          Luuk wrote:
          Vendredi 18 Janvier 2008
          Ah yes. Samedi: wishful thinking.

          --
          Toby A Inkster BSc (Hons) ARCS
          [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
          [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 19 days, 4:01.]

          Ham vs Bacon vs Pork

          Comment

          Working...