1--TEST-- 2Test date_isodate_set() function : basic functionality 3--FILE-- 4<?php 5echo "*** Testing date_isodate_set() : basic functionality ***\n"; 6 7//Set the default time zone 8date_default_timezone_set("Europe/London"); 9 10// Create a deate object 11$datetime = date_create("2009-01-30 17:57:32"); 12 13// Which month is week 40 ? 14date_isodate_set($datetime, 2008, 40); 15echo "Week 40 of 2009 is in \"" . date_format($datetime, "F") . "\"\n"; 16 17// What date is week week 30 day 3 ? 18date_isodate_set($datetime, 2009, 30, 3); 19echo "Week 30 day 3 of 2009 is \"" . date_format($datetime, "D M j") . "\"\n"; 20 21// What date was is last year ? 22date_isodate_set($datetime, 2008, 30, 3); 23echo "..same day last year was \"" . date_format($datetime, "D M j") . "\"\n"; 24 25?> 26--EXPECT-- 27*** Testing date_isodate_set() : basic functionality *** 28Week 40 of 2009 is in "September" 29Week 30 day 3 of 2009 is "Wed Jul 22" 30..same day last year was "Wed Jul 23" 31