PHP » GoLang |
login |
register |
about
|
GoLang MongoDate::toDateTime
request it (351)
GoLang replacement for PHP's MongoDate::toDateTime
[edit | history]
MongoDate::toDateTime(PECL mongo >= 1.6.0) MongoDate::toDateTime — Returns a DateTime object representing this date
DescriptionReturns a DateTime object representation of this date. ParametersThis function has no parameters. Return ValuesThis date as a DateTime object. ExamplesExample #1 MongoDate::toDateTime() example This example demonstrates creating a DateTime object from a MongoDate object.
<?php The above example will output something similar to: 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" } |
more
Recently updated
more
Most requested
more
Last requests
|