PHP ManualDateTime::getTimestampdate_timestamp_get(PHP 5 >= 5.3.0) DateTime::getTimestamp -- date_timestamp_get — Gets the Unix timestamp DescriptionObject oriented style
public int DateTime::getTimestamp
( void
)
Procedural style Gets the Unix timestamp. ParametersThis function has no parameters. Return ValuesReturns the Unix timestamp representing the date. ExamplesExample #1 DateTime::getTimestamp() example Object oriented style
<?php Procedural style
<?php The above examples will output something similar to: 1272509157 NotesUsing U as the parameter to DateTime::format() is an alternative when using PHP 5.2. See Also
![]() |
PHP-Index
New Tutorial entries
|