PHP: date_create - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

date_date_set checkdate

Last updated: Fri, 26 Jan 2007

view this page in

# date_create

(PHP 5 >= 5.1.0RC1)

date_create -- Returns new DateTime object

## Описание

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

## Список параметров

`time`

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

`timezone`

  Time zone of the time.

## Возвращаемые значения

Returns DateTime object on success or `FALSE` on failure.

add a note User Contributed Notes
date_create
nizar dot jouini at gmail.com
07-Mar-2007 05:05
`date_create and other DateTime related functions are included by default only in PHP versions equal and greater than 5.2.
In PHP 5.1.2 this functionality is marked to be experimental and has to be enabled at compile time.`
add a note
date_date_set checkdate

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST