コード例 #1
0
ファイル: Date.php プロジェクト: assertis/util-lib
 /**
  * @param Date $otherDate
  * @return bool
  */
 public function isSameTime(Date $otherDate)
 {
     return $this->format('H:i:s') === $otherDate->format('H:i:s');
 }
コード例 #2
0
ファイル: Weekdays.php プロジェクト: assertis/util-lib
 /**
  * @param Date $date
  * @return bool
  */
 public function matches(Date $date)
 {
     return (bool) $this->toArray()[$date->format('D')];
 }