downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoTimestamp::__toString> <MongoTimestamp
Last updated: Fri, 20 May 2011

view this page in

MongoTimestamp::__construct

(PECL mongo >= 1.0.1)

MongoTimestamp::__constructCreates a new timestamp.

Descripción

MongoTimestamp::__construct ([ int $sec [, int $inc ]] )

Creates a new timestamp. If no parameters are given, the current time is used and the increment is automatically provided. The increment is set to 0 when the module is loaded and is incremented every time this constructor is called (without the $inc parameter passed in).

Parámetros

sec

Number of seconds since January 1st, 1970.

inc

Increment.

Valores devueltos

Returns this new timestamp.

Ver también



add a note add a note User Contributed Notes MongoTimestamp::__construct
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites