| Current Path : /home/digilove/public_html/41423/ |
| Current File : //home/digilove/public_html/41423/DateMonth.php.tar |
home/digilove/public_html/libraries/regularlabs/src/Condition/DateMonth.php 0000644 00000001256 15235254677 0023214 0 ustar 00 <?php
/**
* @package Regular Labs Library
* @version 23.7.24631
*
* @author Peter van Westen <info@regularlabs.com>
* @link https://regularlabs.com
* @copyright Copyright © 2023 Regular Labs All Rights Reserved
* @license GNU General Public License version 2 or later
*/
namespace RegularLabs\Library\Condition;
defined('_JEXEC') or die;
/**
* Class DateMonth
* @package RegularLabs\Library\Condition
*/
class DateMonth extends Date
{
public function pass()
{
$month = $this->date->format('m', true); // 01 (for January) through 12 (for December)
return $this->passSimple((int) $month);
}
}