date_timestamp_set


 

date_timestamp_set

date_timsestamp_set alias DateTime::setTimestamp function is used for setting the date and time based on an Unix timestamp.

date_timsestamp_set alias DateTime::setTimestamp function is used for setting the date and time based on an Unix timestamp.

date_timestamp_set

date_timsestamp_set alias DateTime::setTimestamp function is used for setting the date and time based on an Unix timestamp.

Syntax

public DateTime DateTime::setTimestamp ( int $unixtimestamp )

Parameters

unixtimestamp - Unix timestamp representing the date.

Return Values

It returns the modified DateTime.

Ads