php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34792 Date() function bug
Submitted: 2005-10-09 12:44 UTC Modified: 2005-10-09 13:25 UTC
From: kallesommer at ofir dot dk Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.4.0 OS: UNIX/Windows
Private report: No CVE-ID: None
 [2005-10-09 12:44 UTC] kallesommer at ofir dot dk
Description:
------------
If you look up at the manual on date() it says that "l (lowercase 'L') would give A full textual representation of the day of the week Sunday through Saturday" but if you look lower it also says "Year: L Whether it's a leap year 1 if it is a leap year, 0 otherwise."

So if you run your script you would get '1 or 0'...

Reproduce code:
---------------
<?= date('L'); ?>

Expected result:
----------------
I expect to see the name of the weekday.. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-09 13:25 UTC] sniper@php.net
Please try understand the documentation first before claiming something is a bug. And check your dictionary for "lowercase" :)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 23:01:34 2025 UTC