示例#1
0
 public function setTime($time)
 {
     if (!preg_match('#^\\d+$#', $time)) {
         $time = strtotime($time);
     }
     $this->_time = BaidusubmitSitemap::dateFormat($time, $only_date = TRUE);
 }