DB_Column.date_add
date_addamountperiod
Group: DateTime
Documentation
Shifts the date/time by a specified period, returning a new date/time column of the same type.
Arguments
amount
: An integer or integer column specifying by how many periods to shift each date.period
: The period by which to shift. ForDate
columns it should be aDate_Period
and forTime
columns it should be aTime_Period
. ForDate_Time
columns it can be either. It defaults toDay
where possible andHour
forTime
columns.
Remarks
Time Zone handling
Some backends may not preserve the timezone data in a Date_Time
(preserving the represented time instant). This may lead to slight
differences in time calculations between backends, especially around
unusual events like DST.