Home » Date and Time » Date » Bug #683
add new parameter
Details
| Submitted | 2004-02-05 08:19 UTC |
|---|---|
| From | smailling at free dot fr |
| Assigned | pajoye |
| Status | Closed |
| Package | Date |
| PHP Version | 4.3.4 |
| OS | Windows 2000 |
| Roadmaps | (Not assigned) |
Comments
[2004-02-05 08:19 UTC] smailling at free dot fr
Description:
------------
It is usefull to add a parameter to the folowwing method: getDayName
Reproduce code:
---------------
906a1001
> * @param int optional length of abbreviation, default is 3
909c1004
< function getDayName($abbr = false)
---
> function getDayName($abbr = false, $length = 3)
912c1007
< return Date_Calc::getWeekdayAbbrname($this->day, $this->month, $this->year);
---
> return Date_Calc::getWeekdayAbbrname($this->day, $this->month, $this->year, $length);