public function getDateTime() { // PHP 5.3+ only //return DateTime::createFromFormat("U", $this->timestamp); //$time = date("F j, Y, g:i a", $this->timestamp); //return new DateTime($time); return PicnicDateTime::createFromTimestamp($this->timestamp); }
public function getDownloadedDateTime() { return PicnicDateTime::createFromTimestamp($this->downloaded_at); }