MongoTimestamp
在线手册:中文 英文
PHP手册

MongoTimestamp::__construct

(PECL mongo >= 1.0.1)

MongoTimestamp::__constructCreates a new timestamp.

说明

public MongoTimestamp::__construct ([ int $sec = time() [, 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).

参数

sec

Number of seconds since January 1st, 1970.

inc

Increment.

返回值

Returns this new timestamp.

参见


MongoTimestamp
在线手册:中文 英文
PHP手册