예제 #1
0
파일: DateTime.php 프로젝트: cyantree/grout
 public function copy()
 {
     $d = new DateTime('now', $this->getTimezone(), $this->language);
     $d->setTimestamp($this->getTimestamp());
     return $d;
 }
예제 #2
0
파일: Tools.php 프로젝트: cyantree/grout
 public static function init()
 {
     DateTime::$default = new DateTime();
     DateTime::$local = new DateTime();
     DateTime::$utc = new DateTime('now', new \DateTimeZone('utc'));
 }