cvs: pear /Date Date.php

From: Date: Sun, 14 Mar 2004 15:22:46 +0000
Subject: cvs: pear /Date Date.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17402@lists.php.net to get a copy of this message
pajoye Sun Mar 14 10:22:46 2004 EDT Modified files: /pear/Date Date.php Log: - add optionnal length argument. Uses with Date_Calc::getWeekdayAbbrname() #683 (http://pear.php.net/bugs/bug.php?id=683) http://cvs.php.net/diff.php/pear/Date/Date.php?r1=1.26&r2=1.27&ty=u Index: pear/Date/Date.php diff -u pear/Date/Date.php:1.26 pear/Date/Date.php:1.27 --- pear/Date/Date.php:1.26 Fri Mar 12 09:48:11 2004 +++ pear/Date/Date.php Sun Mar 14 10:22:46 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Date.php,v 1.26 2004/03/12 14:48:11 pajoye Exp $ +// $Id: Date.php,v 1.27 2004/03/14 15:22:46 pajoye Exp $ /**@#+ * Include supporting classes @@ -914,10 +914,10 @@ * @param boolean $abbr abbrivate the name * @return string name of this day */ - function getDayName($abbr = false) + function getDayName($abbr = false, $length = 3) { if ($abbr) { - return Date_Calc::getWeekdayAbbrname($this->day, $this->month, $this->year); + return Date_Calc::getWeekdayAbbrname($this->day, $this->month, $this->year, $length); } else { return Date_Calc::getWeekdayFullname($this->day, $this->month, $this->year); }

« previous php.pear.cvs (#17402) next »