|
DateTime::setTimestampdate_timestamp_setSets the date and time based on an Unix timestamp DescriptionObject-oriented style
public DateTime DateTime::setTimestamp(int
$timestamp)Procedural style DateTime date_timestamp_set(DateTime
$object, int $timestamp)Sets the date and time based on an Unix timestamp. Like DateTimeImmutable::setTimestamp 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. See Also
|