downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DateTime::getTimezone> <DateTime::getOffset
Last updated: Fri, 14 Aug 2009

view this page in

DateTime::getTimestamp

(PHP 5 >= 5.3.0)

DateTime::getTimestampLit 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.

Voir aussi



add a note add a note User Contributed Notes
DateTime::getTimestamp
aharvey at php dot net
30-Oct-2009 05:05
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::getTimezone> <DateTime::getOffset
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites