PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Date and Time » Calendar » Bug #2633

Calendar_Week thisWeek not working

Details

Submitted2004-10-27 16:31 UTC
Frombaback_parandian at yahoo dot de
Assignedquipo
StatusClosed
PackageCalendar
PHP Version5.0.0RC2 (Release Candidate 2)
OS2000
Roadmaps(Not assigned)

Comments

[2004-10-27 16:31 UTC] baback_parandian at yahoo dot de

Description:
------------
Calendar_Week thisWeek not working.

Expected week in year 2 but got 1.

Reproduce code:
---------------
$cWeek = new Calendar_Week(2004, 1, 5);
$week = $cWeek->thisWeek("n_in_year");

Expected result:
----------------
2

Actual result:
--------------
1

[2004-10-28 10:02 UTC] baback_parandian at yahoo dot de

i read the api once again and sorry i made the mistake
i should have called the constructor like this

$cWeek = new Calendar_Week(2004, 1, 5, 1);

Thank your for your help.