Home » Date and Time » Date » Bug #1928
No show
Details
| Submitted | 2004-07-20 16:35 UTC |
|---|---|
| From | toto at darkside dot tomsk dot ru |
| Assigned | pajoye |
| Status | Bogus |
| Package | Date |
| PHP Version | 4.3.7 |
| OS | Linux RH90 |
| Roadmaps | (Not assigned) |
Comments
[2004-07-20 16:35 UTC] toto at darkside dot tomsk dot ru
Description:
------------
PHP 4.3.8
Date-1.4.3 or|and Date-1.4.2
Date::getYear() don't show anything
Reproduce code:
---------------
<?php
require_once('Date.php');
echo Date::getYear()."<br>";
echo Date::getDaysInMonth()."<br>";
?>
Expected result:
----------------
<br>31<br>
Actual result:
--------------
2004<br>31<br>
[2004-07-20 17:05 UTC] pierre at dotgeek dot org
Thank you for taking the time to write to us, but this is not
a bug.
Returns the Year|Days from the current Date _object_. That means it does not work static calls.
--Pierre