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

From: Date: Tue, 08 Sep 2009 11:31:50 +0000
Subject: #49498 [Opn->Tbd]: Wrong MSDN link for strftime()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2740@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: Open +Status: To be documented Bug Type: Documentation problem Operating System: Windows_NT PHP Version: Irrelevant New Comment: 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). Previous Comments: ------------------------------------------------------------------------ [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 (#2740) next »