The functionality of getTimestamp() can be emulated in PHP 5.2 with the format() method:
<?php
// Given a DateTime object $dateTime:
$timestamp = $dateTime->format('U');
?>
DateTime::getTimestamp
(PHP 5 >= 5.3.0)
DateTime::getTimestamp — Gets the Unix timestamp
Description
public int DateTime::getTimestamp
( void
)
Gets the Unix timestamp.
Parameters
This function has no parameters.
Return Values
Returns Unix timestamp representing the date.
DateTime::getTimestamp
aharvey at php dot net
30-Oct-2009 07:05
30-Oct-2009 07:05
