芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/lib/horde/framework/Horde/Imap/Client/Data/Format/Date.php
* @category Horde * @copyright 2012-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Imap_Client */ class Horde_Imap_Client_Data_Format_Date extends Horde_Imap_Client_Data_Format { /** * Constructor. * * @param mixed $data Either a DateTime object, or a date format that * can be converted to a DateTime object. * * @throws Exception */ public function __construct($data) { if (!($data instanceof DateTime)) { $data = new Horde_Imap_Client_DateTime($data); } parent::__construct($data); } /** */ public function __toString() { return $this->_data->format('j-M-Y'); } }