date_create
(PHP 5 >= 5.1.0RC1)
date_create -- Returns new DateTime object
Descrição
DateTime
date_create ( [string time [, DateTimeZone timezone]] )
DateTime
DateTime::__construct ( [string time [, DateTimeZone timezone]] )
Parâmetros
time
String in a format accepted by strtotime(), defaults
to "now".
timezone
Time zone of the time.
Valores de retornado
Returns DateTime object on success or FALSE on failure.