Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
DateTime
PHP Manual

DateTime::setTimestamp

(No version information available, might be only in CVS)

DateTime::setTimestampSets the date and time based on an Unix timestamp

Description

public DateTime DateTime::setTimestamp ( int $unixtimestamp )

Sets the date and time based on an Unix timestamp.

Parameters

unixtimestamp

Unix timestamp representing the date.

Return Values

Returns the modified DateTime.

See Also


DateTime
PHP Manual