strftime function problem

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

    strftime function problem

    Hi,

    I've got a problem with the strftime function...

    this is my code :

    setlocale(LC_AL L, 'en') ;
    echo strftime("'%B'" , strtotime('2006-09-03 00:00:00')) . "<br />" ;
    echo strftime("'%e'" , strtotime('2006-09-03 00:00:00')) ;

    as I expected :

    'September'
    '3'

    I got :

    'September'
    ''

    Do you know why ?

    Thanks in advance,

    --
    phil


  • Janwillem Borleffs

    #2
    Re: strftime function problem

    phil wrote:
    I got :
    >
    'September'
    ''
    >
    Do you know why ?
    >
    I guess you are working on a Windows system, which doesn't support this.
    Have a look at the following page, where I posted a workaround a while a go:




    JW


    Comment

    • phil

      #3
      Re: strftime function problem

      >
      I guess you are working on a Windows system, which doesn't support this.
      Have a look at the following page, where I posted a workaround a while a
      go:
      >

      >
      >
      JW
      Yes, you're right.
      Thank you for your help.

      --
      phil


      Comment

      Working...