Re: PEAR::Date::getDayofWeek

From: Date: Sat, 29 Mar 2003 19:49:08 +0000
Subject: Re: PEAR::Date::getDayofWeek
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14724@lists.php.net to get a copy of this message
> 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. +1 DATE_CALC_BEGIN_WEEKDAY should affect getDayOfWeek() behaviour. -- _/| Ondrej Jombik - nepto@php.net - http://www.nepto.sk - OJ812-RIPE <_ \ Platon SDG - open source software development - http://platon.sk `\| Ako sa do hory vola, tak sa zhori traktor! (c) 1999 Rattkin/MFF '`

« previous php.pear.dev (#14724) next »