Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP date_timestamp_get() Function

PHP date_timestamp_get() Function

PHP Date/Time PHP Date/Time Reference Manual

Example

Return the Unix timestamp of today's date and time:

Run Example »


Definition and Usage

The date_timestamp_get() function returns a Unix timestamp.

Syntax

date_timestamp_get(

object);

Parameters Description
object Required. Specifies a DateTime object returned by date_create() DateTime object returned by

Technical Details

Return Value: Returns the Unix timestamp representing the date.
PHP Version: 5.3+

PHP Date/Time PHP Date/Time Reference Manual