Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: date_create - Manual
[go: Go Back, main page]

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

search for in the

date_date_set" width="11" height="7"/> <checkdate
Last updated: Mon, 05 Feb 2007

view this page in

date_create

(PHP 5 >= 5.2.0)

date_create — 新しい DateTime オブジェクトを返す

説明

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

パラメータ

time

strtotime() が理解する形式の文字列。デフォルトは "now" です。

timezone

その時間のタイムゾーン。

返り値

成功した場合に DateTime オブジェクト、失敗した場合に FALSE を返します。



add a note add a note User Contributed Notes
date_create
nizar dot jouini at gmail.com
07-Mar-2007 10: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.

date_date_set" width="11" height="7"/> <checkdate
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites