|
MongoDB\BSON\UTCDateTime::__constructConstruct a new UTCDateTime 説明
final public MongoDB\BSON\UTCDateTime::__construct(intfloatstringDateTimeInterfacenull
$milliseconds = null )パラメータ
エラー / 例外
変更履歴
例例1 MongoDB\BSON\UTCDateTime::__construct example
<?php 上の例の出力は、 たとえば以下のようになります。 object(MongoDB\BSON\UTCDateTime)#1 (1) { ["milliseconds"]=> string(13) "1484852905560" } object(MongoDB\BSON\UTCDateTime)#1 (1) { ["milliseconds"]=> string(13) "1484852905560" } object(MongoDB\BSON\UTCDateTime)#1 (1) { ["milliseconds"]=> string(13) "1416445411987" } |