MongoDB\BSON\UTCDateTime::toDateTimeImmutableReturns the DateTimeImmutable representation of this UTCDateTime 説明
final public DateTimeImmutable MongoDB\BSON\UTCDateTime::toDateTimeImmutable()
パラメータこの関数にはパラメータはありません。 戻り値Returns the DateTimeImmutable representation of this UTCDateTime. The returned DateTimeImmutable will use the UTC time zone. エラー / 例外
例例1 MongoDB\BSON\UTCDatetime::toDateTimeImmutable example 上の例の出力は、 たとえば以下のようになります。
string(31) "Thu, 20 Nov 2014 01:03:31 +0000"
string(17) "1416445411.987000"
object(DateTimeZone)#3 (2) {
["timezone_type"]=>
int(1)
["timezone"]=>
string(6) "+00:00"
}
参考
|