#49498 [Tbd->Csd]: Wrong MSDN link for strftime()

From: Date: Tue, 08 Sep 2009 11:34:35 +0000
Subject: #49498 [Tbd->Csd]: Wrong MSDN link for strftime()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2741@lists.php.net to get a copy of this message
ID: 49498 Updated by: rquadling@php.net Reported By: carsten_sttgt at gmx dot de -Status: To be documented +Status: Closed Bug Type: Documentation problem Operating System: Windows_NT PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-09-08 11:34:16] svn@php.net Automatic comment from SVN on behalf of rquadling Revision: http://svn.php.net/viewvc/?view=revision&revision=288157 Log: MSDN link to strftime is for VC++, not for VC.NET. Fix #49498 ------------------------------------------------------------------------ [2009-09-08 11:31:49] rquadling@php.net As PHP uses VC9 for building, this maps to the VS2008. The link is more likely to be http://msdn.microsoft.com/en-us/library/fe06s4ak.aspx as this is Run-Time Library Reference and DOES show %p (which the .NET doesn't have). ------------------------------------------------------------------------ [2009-09-08 11:14:49] carsten_sttgt at gmx dot de Description: ------------ Hello, on the manual page for strftime() you can find a link to the MSDN for the formatting codes which are available on Windows. Of course this link is wrong, PHP is not a .NET application and it's not using e.g. the ToString methode from a .NET DateTime object. Thus standard DateTime format strings which are valid for .NET applications are not helpful for a PHP programmer. Instead PHP is using the C function strftime() from msvcrt. And a PHP programmer have to use a formating codes which are valid for this function. Regards, Carsten Reproduce code: --------------- http://de.php.net/manual/en/function.strftime.php Expected result: ---------------- http://msdn.microsoft.com/en-us/library/aa272978%28VS.60%29.aspx Actual result: -------------- http://msdn.microsoft.com/en-us/library/az4se3k1%28VS.71%29.aspx ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49498&edit=1

« previous php.doc.bugs (#2741) next »