Tribe__Date_Utils::time_between( string $date1, string $date2 )

Returns the number of seconds (absolute value) between two dates/times.


Parameters

$date1

(string) (Required) The first date.

$date2

(string) (Required) The second date.


Top ↑

Return

(int) The number of seconds between the dates.


Top ↑

Source

File: src/Tribe/Date_Utils.php

		public static function time_between( $date1, $date2 ) {
			return abs( strtotime( $date1 ) - strtotime( $date2 ) );
		}