php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34348 Confusing "timestamp" parameter in strptime()
Submitted: 2005-09-02 17:31 UTC Modified: 2005-09-02 18:40 UTC
From: dallas@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Non-Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dallas@php.net
New email:
PHP Version: OS:

 

 [2005-09-02 17:31 UTC] dallas@php.net
Description:
------------
The document of strptime() function using the following define:

array strptime ( string timestamp, string format )

timestamp (string)
    A timestamp (e.g. returned from strftime()) 

However, "timestamp" here is not actually a timestamp(seconds since Unix Epoch).  It's a string value likely returned from strftime().

Maybe changing "timestamp" to another less confusing word is a good idea.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-02 18:40 UTC] nlopess@php.net
Yes, it was confusing.
I've fixed it, thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Oct 10 17:00:01 2025 UTC