I’d like to use "%e" in my Unix date format for a TV, but when i use it, no date displays at all on the page, whereas is if if use "%d" the date displays just fine. I’d really like to use "%e" rather than "%d" so the day is not zero-padded. Can anyone help me out?
Thanks
-
☆ A M B ☆
- 24,524 Posts
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.
http://php.net/manual/en/function.strftime.php