You are here

public static function Helper::time__get_interval_start in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 9.1.x src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::time__get_interval_start()
3 calls to Helper::time__get_interval_start()
AntiCrawler::update_ac_log in src/lib/Cleantalk/Common/Firewall/Modules/AntiCrawler.php
Update ac logs table
AntiFlood::clear_table in src/lib/Cleantalk/Common/Firewall/Modules/AntiFlood.php
AntiFlood::update_ac_log in src/lib/Cleantalk/Common/Firewall/Modules/AntiFlood.php
Update ac logs table

File

src/lib/Cleantalk/Common/Helper.php, line 1127

Class

Helper
CleanTalk Helper class. Compatible with any CMS.

Namespace

Cleantalk\Common

Code

public static function time__get_interval_start($interval = 300) {
  return time() - (time() - strtotime(date('d F Y'))) % $interval;
}