Amfphp_Core_Amf_Deserializer::readDate PHP Method

readDate() protected method

This method is still under development.
protected readDate ( ) : Amfphp_Core_Amf_Types_Date
return Amfphp_Core_Amf_Types_Date a container with the date in ms.
    protected function readDate()
    {
        $ms = $this->readDouble();
        // date in milliseconds from 01/01/1970
        $int = $this->readInt();
        // unsupported timezone
        $date = new Amfphp_Core_Amf_Types_Date($ms);
        return $date;
    }

Usage Example

コード例 #1
0
 /**
  * read date
  * @return Amfphp_Core_Amf_Types_Date a container with the date in ms.
  * 
  */
 public function readDate()
 {
     return parent::readDate();
 }