Свойство | Тип | Описание | |
---|---|---|---|
$sec | integer | ||
$usec | integer |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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 | ||
Результат | string |
public toBSONType ( ) : MongoDB\BSON\UTCDateTime | ||
Результат | MongoDB\BSON\UTCDateTime |
public toDateTime ( ) : DateTime | ||
Результат | DateTime |