| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Sun, 9 Nov 2003 14:45:48 +0000 (GMT) |
| From: | John Sullivan <johns AT chiark DOT greenend DOT org DOT uk> |
| Reply-To: | John Sullivan <johns AT chiark DOT greenend DOT org DOT uk> |
| To: | cygwin AT cygwin DOT com |
| Subject: | mod_php & strftime |
| Message-ID: | <Pine.LNX.4.21.0311091434330.21723-100000@chiark.greenend.org.uk> |
| Organization: | Huh? |
| MIME-Version: | 1.0 |
The pure native version of mod_php from php.net (for use with the native
Win32 Apache) supports the (fairly common) %#* extensions in strftime, for
example:
strftime("%d %B", $d) returns "09 November"
strftime("%#d %B", $d) returns "9 November"
The cygwin version doesn't:
strftime("%#d %B", $d) returns "d November"
To get the same effect one needs to do something like:
$dtm = getdate($d);
strftime("%A " . $dtm['mday'] . " %B %Y", $d)
Which is really grotty.
John
--
Dead stars still burn
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |