Menu Riverview Church

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

1603872072

PHP