|
MongoDB\BSON\UTCDateTime::__constructConstruct a new UTCDateTime Description
final public MongoDB\BSON\UTCDateTime::__construct(intfloatstringMongoDB\BSON\Int64DateTimeInterfacenull
$milliseconds = null )Parameters
Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\BSON\UTCDateTime::__construct example
The 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 |