Amfphp_Core_Amf_Deserializer::readDate PHP Метод

readDate() защищенный Метод

This method is still under development.
protected readDate ( ) : Amfphp_Core_Amf_Types_Date
Результат 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

 /**
  * read date
  * @return Amfphp_Core_Amf_Types_Date a container with the date in ms.
  * 
  */
 public function readDate()
 {
     return parent::readDate();
 }