Documentation

setTimeZone

\Bitrix\Main\Type\DateTime public
\Bitrix\Main\Type\DateTime::setTimeZone(
 \DateTimeZone $timezone
);

Non-static method sets a timezone object.

Parameters

ParameterDescriptionVersion
$timezoneTimezone object.

Example



© «Bitrix24», 2001-2024
Up