Menu
Samaritan's Purse

DATE_TIMESTAMP_GET

Gets the Unix timestamp

SYNTAX

date_timestamp_get ( DateTimeInterface $object ) : int

PARAMETERS

object

A DateTime object returned by date_create().

RETURN

Returns the Unix timestamp representing the date.

EXAMPLES

1611158070

PHP