note 97726 added to function.strftime

From: Date: Wed, 05 May 2010 12:12:37 +0000
Subject: note 97726 added to function.strftime
Groups: php.notes 
Request: Send a blank email to php-notes+get-168958@lists.php.net to get a copy of this message
The format "%e" does not work on Windows. There is a bug entry : http://bugs.php.net/bug.php?id=45847 It's because strftime is not portable, it use the operating system function. For Win32, to get more documentation we have to consult the Windows "Run-Time Library Reference" for strftime : http://msdn.microsoft.com/en-us/library/fe06s4ak%28VS.71%29.aspx And we can find the solution: replace "%e" by "%#d" the "#" remove leading zeros (if any). Cyrille ---- Server IP: 89.31.146.176 Probable Submitter: 86.72.93.30 ---- Manual Page -- http://www.php.net/manual/en/function.strftime.php Edit -- https://master.php.net/note/edit/97726 Del: integrated -- https://master.php.net/note/delete/97726/integrated Del: useless -- https://master.php.net/note/delete/97726/useless Del: bad code -- https://master.php.net/note/delete/97726/bad+code Del: spam -- https://master.php.net/note/delete/97726/spam Del: non-english -- https://master.php.net/note/delete/97726/non-english Del: in docs -- https://master.php.net/note/delete/97726/in+docs Del: other reasons-- https://master.php.net/note/delete/97726 Reject -- https://master.php.net/note/reject/97726 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168958) next »