* @revision 01 * @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @homepage http://oss.tiggerswelt.net/oscar/ * @copyright Copyright © 2009 tiggersWelt.net */ class Oscar_TLV_Helper_Time extends Oscar_TLV { /* Value of this TLV */ public $Value = 0x0000000; // {{{ parse /** * Parse this TLV * * @access public * @return void */ public function parse () { $this->Value = Oscar_Common::str2int32 ($this->Data, 0, true); } // }}} // {{{ generate /** * Generate a string from this TLV * * @access public * @return string */ public function generate () { $this->Data = Oscar_Common::int32tostr ($this->Value); return parent::generate (); } // }}} // {{{ toString /** * Generate a human readable string from this TLV * * @access public * @return string **/ public function toString () { return parent::toString () . " / " . date ("d.m.Y H:i:s", $this->Value); } // }}} } ?>