This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mod_php & strftime


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]