Share on Google+Share on Google+

date_timestamp_set

Advertisement
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.

Advertisements

Posted on: August 27, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.