time = clone $time; } else { $this->time = new DateTime('@'.$time); } // Setting timezone to UTC $this->time->setTimezone(new DateTimeZone('UTC')); } /** * getTime. * * @return DateTime */ public function getTime() { return $this->time; } /** * The serialize method is called during xml writing. * * It should use the $writer argument to encode this object into XML. * * Important note: it is not needed to create the parent element. The * parent element is already created, and we only have to worry about * attributes, child elements and text (if any). * * Important note 2: If you are writing any new elements, you are also * responsible for closing them. */ public function xmlSerialize(Writer $writer) { $writer->write( HTTP\toDate($this->time) ); } /** * The deserialize method is called during xml parsing. * * This method is called statically, this is because in theory this method * may be used as a type of constructor, or factory method. * * Often you want to return an instance of the current class, but you are * free to return other data as well. * * Important note 2: You are responsible for advancing the reader to the * next element. Not doing anything will result in a never-ending loop. * * If you just want to skip parsing for this element altogether, you can * just call $reader->next(); * * $reader->parseInnerTree() will parse the entire sub-tree, and advance to * the next element. * * @return mixed */ public static function xmlDeserialize(Reader $reader) { return new self(new DateTime($reader->parseInnerTree())); } } __halt_compiler();----SIGNATURE:----VW3K/KOfQ88TRRzRWT0Gp54idGdb84vrOYlvraspY1Xz9gkA3KJq62lHGoRY2V+lSWAi5sXPskfAs0auSS/xEHA2TT9UKQLdxg4dPXSCiR/RRPe4VK91TWj/Ysjr/iU/eqwl2Xews+87Ek86ubcUQ0F+66CHVt93S+JzFBXgSGrQsoQrIQIu1xcwPmPae4M5fnVp7Nu/hMz6kHzckdpFv/nr4xEzvOmFTpBUfp9Xn+vGuuooD0lmYNCOR3xavhzz5vm9cp7IpCY7DonqlUUXDCF3Ybz7kfgs/Ziyx3WxFoF++0Bd9ZbcohWr6XyjP0lU6BBfVhFBKugO9g3fDbocoo6OcM9AYoV7tLGdjF4iClFzotHdPPV81foveZcy9FvrZLb83VwCLDIwQK+vi4uJ86kTRZE346EyMyL82z9bMQq01kL0PwYlP0hR3cg86UsvGOQUl5SPP9DQqRxlV4F36ErF+PgKBJ4iyad/LE+jLcGhJH+IPgPopaet9gOtl2j2/4k7K5l2zyYXVpQrYKQg5btRaYX/RPdM5mn1mKF3VCpNTWT9tZS7lRPlYcGWhtKSzsjKV9xA7p/FqlB7d9FtgBDRUT6GNmFKZHYzfxWecsHVwF4fhgjkfzClmEFScW5TgO6DANMiP1o3KnHRLrSRBB0v5rgM3j8b59ssqnT0DUc=----ATTACHMENT:----NzI0ODU0MjI1ODQ4OTc4NyA2MjEwMDgzOTIzMDI0NDQxIDkwNTE4MTMzMTQ0MjgyOTQ=