Page 1 of 1

echo strftime('%T') why the reference does't work?

Posted: Tue Oct 27, 2009 9:53 pm
by tsmg
the result is emptiy!

in normal ,it should return the time now!

Re: echo strftime('%T') why the reference does't work?

Posted: Wed Oct 28, 2009 2:26 am
by requinix
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, so your date range may be limited to no earlier than the Unix epoch. This means that %e, %T, %R and, %D (and possibly others) - as well as dates prior to Jan 1, 1970 - will not work on Windows, some Linux distributions, and a few other operating systems. For Windows systems, a complete overview of supported conversion specifiers can be found at ยป MSDN.

Re: echo strftime('%T') why the reference does't work?

Posted: Tue Nov 17, 2009 1:27 am
by tsmg
Thank you! :)