PHP » GoLang |
login |
register |
about
|
GoLang MongoDate::__construct
request it (331)
GoLang replacement for PHP's MongoDate::__construct
[edit | history]
MongoDate::__construct(PECL mongo >= 0.8.1) MongoDate::__construct — Creates a new date
Description
public MongoDate::__construct
([ int
$sec = time()
[, int $usec = 0
]] )Creates a new date. If no parameters are given, the current time is used. Parameters
Return ValuesReturns this new date. ExamplesExample #1 MongoDate::__construct() example This example demonstrates creating a new date with the current time and a new date with a given time.
<?php The above example will output something similar to: 0.23660600 1235685067 0.00000000 1234567890 0.00000000 1241150401 |
more
Recently updated
more
Most requested
more
Last requests
|