update : 2015.11.03
php.shukuma.com검색:
|
MongoDate::toDateTime(PECL mongo >= 1.6.0; PHP > 5.3.4) MongoDate::toDateTime — Returns a DateTime object representing this date 설명Returns a DateTime object representation of this date. 인수이 함수는 인수가 없습니다. 반환값This date as a DateTime object. 예제Example #1 MongoDate::toDateTime() example This example demonstrates creating a DateTime object from a MongoDate object.
<?php 위 예제의 출력 예시: class DateTime#2 (3) { public $date => string(26) "2014-11-18 11:01:25.000000" public $timezone_type => int(1) public $timezone => string(6) "+00:00" } |