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
Descrierea
public int DateTime::getTimestamp
( void
)
Gets the Unix timestamp.
Parametri
Această funcţie nu are parametri.
Valorile întroarse
Returns Unix timestamp representing the date.
DateTime::getTimestamp
aharvey at php dot net
30-Oct-2009 05:05
30-Oct-2009 05:05
