常用方法
常用方法
常用方法
常用方法
/** * @param \DateTime $created */ public function setCreated(\DateTime $created = null) { if ($created === null) { $created = new \DateTime('now', new \DateTimeZone('UTC')); } $this->created = $created->gettimestamp(); }