1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
datetimezone.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Core\Base;
4
5use Bitrix\Calendar\Util;
6
8{
9 protected $timeZone;
10
15 public static function createByString(?string $timezone): DateTimeZone
16 {
17 return new self(Util::prepareTimezone($timezone));
18 }
19
21 {
22 $this->timeZone = $timeZone;
23 }
24
28 public function getFields(): array
29 {
30 return [
31 'timeZone',
32 ];
33 }
34
38 public function toString(): string
39 {
40 return $this->timeZone->getName();
41 }
42
46 public function getTimeZone(): \DateTimeZone
47 {
48 return $this->timeZone;
49 }
50}
__construct(\DateTimeZone $timeZone)
Определения datetimezone.php:20
static createByString(?string $timezone)
Определения datetimezone.php:15
static prepareTimezone(?string $tz=null)
Определения util.php:80
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804