MongoTimestamp
MongoTimestamp::__toString
MongoTimestamp
PHP Manual

# MongoTimestamp::__construct

(PECL mongo >= 1.0.1)

MongoTimestamp::__construct — Creates a new timestamp.

### Descrição

MongoTimestamp::__construct ([ long `$sec` [, long `$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.

### Valor Retornado

Returns this new timestamp.

### Veja Também

- MongoTimestamp::__toString - Returns a string representation of this timestamp

MongoTimestamp
MongoTimestamp::__toString
MongoTimestamp
PHP Manual