php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49498 Wrong MSDN link for strftime()
Submitted: 2009-09-08 11:14 UTC Modified: 2009-09-08 11:34 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows_NT
Private report: No CVE-ID: None
 [2009-09-08 11:14 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-08 11:31 UTC] 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:34 UTC] 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:34 UTC] rquadling@php.net
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.


 [2020-02-07 07:30 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/base.git;a=commit;h=53b07393c2d9ce7ffa073da4aca38628551bccd7
Log: MSDN link to strftime is for VC++, not for VC.NET. Fix #49498
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC