[url=https://dev.1c-bitrix.ru/api_d7/detail.php?ID=1754513]add[/url]
\Bitrix\Main\Type\Date public
\Bitrix\Main\Type\Date::add(
string $interval
);
Performs dates arithmetic.
Each duration period is represented by an integer value followed by a period
designator. If the duration contains time elements, that portion of the
specification is preceded by the letter T.
Period Designators: Y - years, M - months, D - days, W - weeks, H - hours,
M - minutes, S - seconds.
Examples: two days - 2D, two seconds - T2S, six years and five minutes - 6YT5M.
The unit types must be entered from the largest scale unit on the left to the
smallest scale unit on the right.
Use first "-" char for negative periods.
OR
Relative period.
Examples: "+5 weeks", "12 day", "-7 weekdays", '3 months - 5 days'
Parameters
ParameterDescriptionVersion
$intervalTime interval to add.
Examples