/home/altere25/usaigc.com/wp-content/plugins/optinmonster/OMAPI
Edit: /home/altere25/usaigc.com/wp-content/plugins/optinmonster/OMAPI/Utils.php (5323B)
getTimezone() );
return $compare < $start;
}
/**
* Check if given date is between provided start/end date.
*
* @since 2.11.1
*
* @param DateTime $compare The date to compare against the start/end date.
* @param string $start The start date to compare against, in 'Y-m-d H:i:s' format.
* @param string $end The end date to compare against, in 'Y-m-d H:i:s' format.
*
* @return bool Whether the given date is between provided start/end date.
*/
public static function date_within( DateTime $compare, $start, $end ) {
return ! self::date_before( $compare, $start )
&& $compare < DateTime::createFromFormat( 'Y-m-d H:i:s', $end, $compare->getTimezone() );
}
}