note 94442 added to function.strftime

From: Date: Thu, 05 Nov 2009 14:46:53 +0000
Subject: note 94442 added to function.strftime
Groups: php.notes 
Request: Send a blank email to php-notes+get-162415@lists.php.net to get a copy of this message
Just a little flaw I just encountered while developing on a Windows server. "%e" tag is unsupported on the Windows platform, so if you try to execute a strftime("%e", $theTime) you'd receive an empty string as the result. To strip blank or 0 chars at the beginning of a tag Windows uses a "#" in the tag, i.e. strftime("%#d", $theTime) works as expected. ---- Server IP: 69.147.83.197 Probable Submitter: 93.39.83.4 ---- Manual Page -- http://www.php.net/manual/en/function.strftime.php Edit -- https://master.php.net/note/edit/94442 Del: integrated -- https://master.php.net/note/delete/94442/integrated Del: useless -- https://master.php.net/note/delete/94442/useless Del: bad code -- https://master.php.net/note/delete/94442/bad+code Del: spam -- https://master.php.net/note/delete/94442/spam Del: non-english -- https://master.php.net/note/delete/94442/non-english Del: in docs -- https://master.php.net/note/delete/94442/in+docs Del: other reasons-- https://master.php.net/note/delete/94442 Reject -- https://master.php.net/note/reject/94442 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162415) next »