php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33300 mistake in one command description
Submitted: 2005-06-10 16:19 UTC Modified: 2005-06-10 20:16 UTC
From: jaume at nobainfo dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: n.a.
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: jaume at nobainfo dot net
New email:
PHP Version: OS:

 

 [2005-06-10 16:19 UTC] jaume at nobainfo dot net
Description:
------------
In the "date()" function documentation there is a mistake

In Table 1., the line that reads:

    H .. 24-hour format of an hour with leading zeros .. 00 through 23  

Ought to be:

    H .. 24-hour format of an hour with leading zeros .. 01 through 23  

(page referred)
http://es2.php.net/manual/en/function.date.php



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-10 16:26 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 [2005-06-10 18:13 UTC] hholzgra@php.net
What time would midnight be in your 01-23 system?

01:00 or 23:00?

The documentation is obviously right 

PS: i also see 0:00 on my clock a lot ...
 [2005-06-10 20:16 UTC] jsgoupil@php.net
Time is not 01-23 system. It is 00-23 (or 24h, opposed at 12h).

Midnight is 00:00 like 12AM.

23:00 is like 11PM.

So after 11:59PM, there is 12:00AM (or 00:00).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 09 18:00:02 2025 UTC