PEAR::Date::getDayofWeek
| From: | Lukas Smith | Date: | Thu, 27 Mar 2003 12:16:55 +0000 |
| Subject: | PEAR::Date::getDayofWeek | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14664@lists.php.net to get a copy of this message | ||
Hi,
just wanted to hear what other people think.
getDayOfWeek always returns Sunday as 0 regardless of what
DATE_CALC_BEGIN_WEEKDAY is set to be.
This is documented as follows:
Returns day of week for given date, 0=Sunday
I think it would be cleaner to respect the setting of
DATE_CALC_BEGIN_WEEKDAY would be respected in getDayOfWeek.
If that is not desireable I would like to know where this constant is
respected and where not this should be documented.
Regards,
Lukas Smith
smith@backendmedia.com
_______________________________
BackendMedia
www.backendmedia.com
berlin@backendmedia.com
Linn Zwoch Smith GbR
Reuchlinstr. 10-11 Raum 4.1.6
D-10553 Berlin (Tiergarten)
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07