芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/tt.kahokutaku.com/wp-content/plugins/optinmonster/OMAPI/Utils.php
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() ); } }