Tribe__Date_Utils::time_between( string $date1, string $date2 )
Returns the number of seconds (absolute value) between two dates/times.
Contents
Parameters
- $date1
-
(string) (Required) The first date.
- $date2
-
(string) (Required) The second date.
Return
(int) The number of seconds between the dates.
Source
File: src/Tribe/Date_Utils.php
public static function time_between( $date1, $date2 ) {
return abs( strtotime( $date1 ) - strtotime( $date2 ) );
}