コード例 #1
0
ファイル: DateTime.php プロジェクト: phpextra/date
 /**
  * Tell if current date is equal to the real date
  *
  * @return bool
  */
 public function isToday()
 {
     return $this->format('zY') == DateTime::now()->format('zY');
 }