예제 #1
0
 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);
 }
예제 #2
0
 public function getDownloadedDateTime()
 {
     return PicnicDateTime::createFromTimestamp($this->downloaded_at);
 }