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 — Lit le timestamp Unix
Description
public int DateTime::getTimestamp
( void
)
Lit le timestamp Unix.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
Lit le timestamp Unix représentant la date.
DateTime::getTimestamp
aharvey at php dot net
30-Oct-2009 05:05
30-Oct-2009 05:05
