array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'class.mongodb-bson-timestamp.php', 1 => 'MongoDB\\BSON\\Timestamp', ), 'up' => array ( 0 => 'book.bson.php', 1 => 'MongoDB\\BSON', ), 'prev' => array ( 0 => 'mongodb-bson-regex.unserialize.php', 1 => 'MongoDB\\BSON\\Regex::unserialize', ), 'next' => array ( 0 => 'mongodb-bson-timestamp.construct.php', 1 => 'MongoDB\\BSON\\Timestamp::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/timestamp.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.mongodb-bson-timestamp.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.0.0)
Represents a » BSON timestamp, The value consists of a 4-byte timestamp (i.e. seconds since the epoch) and a 4-byte increment.
注意: This is an internal MongoDB type used for replication and sharding. It is not intended for general date storage (MongoDB\BSON\UTCDateTime should be used instead).
版本 | 说明 |
---|---|
PECL mongodb 1.12.0 | Implements Stringable for PHP 8.0+. |
PECL mongodb 1.3.0 | Implements MongoDB\BSON\TimestampInterface. |
PECL mongodb 1.2.0 | Implements Serializable and JsonSerializable. |