• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/numerator/generator/sequentnumbergenerator.php
  • Класс: BitrixMainNumeratorGeneratorSequentNumberGenerator
  • Вызов: SequentNumberGenerator::isHasChanged
private function isHasChanged($interval)
{
	if ($interval == static::MONTH)
	{
		return $this->getLastInvocationUserTime()->format('m') !== $this->getNowUserTime()->format('m');
	}
	if ($interval == static::DAY)
	{
		return $this->getLastInvocationUserTime()->format('d') !== $this->getNowUserTime()->format('d');
	}
	if ($interval == static::YEAR)
	{
		return $this->getLastInvocationUserTime()->format('Y') !== $this->getNowUserTime()->format('Y');
	}
	return false;
}