|
MongoDB\BSON\UTCDateTime::__constructConstruct a new UTCDateTime Description
final public MongoDB\BSON\UTCDateTime::__construct
([ integer|float|string|DateTimeInterface
$milliseconds = NULL
] )
Parameters
Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\BSON\UTCDateTime::__construct example
<?phpThe above example will output something similar to:
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"
}
See Also |