1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Countdown.php
См. документацию.
1<?php
2
3namespace Bitrix\Landing;
4
6{
7 public static function getTimestamp(): int
8 {
9 $currentTime = time();
10
11 $currentYear = (int)date('Y', $currentTime);
12 $currentMonth = (int)date('m', $currentTime);
13 $currentDay = (int)date('d', $currentTime);
14
15 $targetMonth = 4;
16 $targetDay = 12;
17
18 if ($currentMonth > $targetMonth || ($currentMonth === $targetMonth && $currentDay >= $targetDay))
19 {
20 $targetYear = $currentYear + 1;
21 }
22 else
23 {
24 $targetYear = $currentYear;
25 }
26
27 $time = '10:00:00';
28
29 return strtotime("$targetYear-$targetMonth-$targetDay $time") * 1000;
30 }
31}
static getTimestamp()
Определения Countdown.php:7
$time
Определения payment.php:61