PHP 클래스 Roomify\Bat\Event\EventInterval

A utility class that brings togehter functions we end up using often across Bat to hand Event Intervals.
파일 보기 프로젝트 열기: roomify/bat 1 사용 예제들

공개 메소드들

메소드 설명
divide ( DateTime $start_date, DateTime $end_date, DateInterval $duration ) : float Return the number of times a duration fits into the start and end date taking into account BAT's consideration that the end time for a BAT event includes that last minute.

메소드 상세

divide() 공개 정적인 메소드

Return the number of times a duration fits into the start and end date taking into account BAT's consideration that the end time for a BAT event includes that last minute.
public static divide ( DateTime $start_date, DateTime $end_date, DateInterval $duration ) : float
$start_date DateTime
$end_date DateTime
$duration DateInterval
리턴 float