Date/Time
PHP Manual

date_isodate_set

(PHP 5 >= 5.1.0)

date_isodate_set — Sets the ISO date

说明

void date_isodate_set ( DateTime $object , int $year , int $week [, int $day ] )
void DateTime::setISODate ( int $year , int $week [, int $day ] )

参数

object

DateTime object.

year

Year of the date.

week

Week of the date.

day

Day of the date.

返回值

Returns NULL on success or FALSE on failure.

参见


Date/Time
PHP Manual