Fecha/Hora
PHP Manual

date_create

(PHP 5 >= 5.1.0)

date_create — Returns new DateTime object

Descripción

DateTime date_create ([ string $time [, DateTimeZone $timezone ]] )
DateTime DateTime::__construct ([ string $time [, DateTimeZone $timezone ]] )

Lista de parámetros

time

String in a format accepted by strtotime(), defaults to "now".

timezone

Time zone of the time.

Valores retornados

Returns DateTime object on success or FALSE on failure.


Fecha/Hora
PHP Manual