Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
evseevnn
Cassandra
Protocol
Response
DataStream
readTimestamp
evseevnn\Cassandra\Protocol\Response\DataStream::readTimestamp PHP Method
DataStream Class Documentation
显示文件
Open project: evseevnn/php-cassandra-binary
readTimestamp()
public
method
Cassandra is using the default java date representation, which is the milliseconds since epoch. Since we cannot use 64 bits integers without extra libraries, we are reading this as two 32 bits numbers and calculate the seconds since epoch.
public
readTimestamp
( ) :
integer
return
integer
public function readTimestamp() { return $this->readBigInt() / 1000; }
DataStream
__construct
bchexdec
read
readBigInt
readBoolean
readByType
readBytes
readChar
readDecimal
readDouble
readFloat
readInet
readInt
readList
readLongString
readMap
readShort
readString
readTimestamp
readUuid
readVarint