|
DateTime::setTimedate_time_setSets the time DescriptionObject-oriented style
public DateTime DateTime::setTime(
int $hour ,int $minute ,int $second = 0,int $microsecond = 0) Procedural style DateTime date_time_set(
DateTime $object ,int $hour ,int $minute ,int $second = 0,int $microsecond = 0) Resets the current time of the DateTime object to a different time. Like DateTimeImmutable::setTime but works with DateTime. The procedural version takes the DateTime object as its first argument. Parameters
Return ValuesReturns the modified DateTime object for method chaining. Changelog
See Also
|