Property | Type | Description | |
---|---|---|---|
$sec | integer | ||
$usec | integer |
Method | Description | |
---|---|---|
__construct ( integer $sec, integer $usec ) | Creates a new date. If no parameters are given, the current time is used. | |
__toString ( ) : string | Returns a string representation of this date | |
toBSONType ( ) : MongoDB\BSON\UTCDateTime | Converts this MongoDate to the new BSON UTCDateTime type | |
toDateTime ( ) : DateTime | Returns a DateTime object representing this date |
Method | Description | |
---|---|---|
truncateMicroSeconds ( integer $usec ) : integer |
public __construct ( integer $sec, integer $usec ) | ||
$sec | integer | Number of seconds since January 1st, 1970 |
$usec | integer | Microseconds |
public __toString ( ) : string | ||
return | string |
public toBSONType ( ) : MongoDB\BSON\UTCDateTime | ||
return | MongoDB\BSON\UTCDateTime |
public toDateTime ( ) : DateTime | ||
return | DateTime |