update : 2015.11.03
php.shukuma.com

검색:
 
 
Creates a new timestamp.

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 the epoch (i.e. 1 Jan 1970 00:00:00.000 UTC).

inc

Increment.

반환값

Returns this new timestamp.

참고