class MongoTimestamp (View source)

Properties

int $sec
int $inc

Methods

__construct(int $sec = 0, 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).

string
__toString()

No description

Details

__construct(int $sec = 0, 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).

Parameters

int $sec

[optional] Number of seconds since January 1st, 1970

int $inc

[optional] Increment

string __toString()

No description

Return Value

string