DateTime
PHP 手册

DateTime::getTimestamp

(PHP 5 >= 5.3.0)

DateTime::getTimestampGets the Unix timestamp

说明

public int DateTime::getTimestamp ( void )

Gets the Unix timestamp.

参数

This function has no parameters.

返回值

Returns Unix timestamp representing the date.

参见


DateTime
PHP 手册