Results 1 to 3 of 3

Thread: My PC doesn't recognize Pavarotti

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    My PC doesn't recognize Pavarotti

    I guess my baby doesn't like italian. Got a code like this
    PHP Code:
    <?php

          setlocale 
    (LC_TIME'en_US');
          echo 
    strftime ('%A, %B %d %G, %T');
          echo 
    "<br/>";
          
    setlocale (LC_TIME'it_IT');
          echo 
    strftime ('%A, %d %B %G, %T');
          echo 
    "\n";

    ?>
    expected to print something like

    Tuesday, April 15 2003, 07:52:21
    martedì, 15 aprile 2003, 07:52:21

    But displays no Pavarotti style. Just

    Tuesday, April 15 2003,
    Tuesday, 25 April,

    And oh, no value for %T? Please help. Thanks.

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: My PC doesn't recognize Pavarotti

    what are u running this code on?

  3. #3
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: My PC doesn't recognize Pavarotti

    Check this out.. on %T ehehehe
    Quote Originally Posted by PHP Documentation
    Note: Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP's strftime(). Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. %e, %T, %R and %D (there might be more) and dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems.
    ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width