MobilityDB 1.3
Loading...
Searching...
No Matches

◆ add_timestamptz_interval()

TimestampTz add_timestamptz_interval ( TimestampTz  t,
const Interval interv 
)

Return the addition of a timestamp and an interval.

Note that interval has provisions for qualitative year/month and day units, so try to do the right thing with them. To add a month, increment the month, and use the same day of month. Then, if the next month has fewer days, set the day of month to the last day of month. To add a day, increment the mday, and use the same time of day. Lastly, add in the "quantitative time".

Parameters
[in]tTimestamp
[in]intervInterval
Returns
On error return DT_NOEND
Note
PostgreSQL function: timestamp_pl_interval(PG_FUNCTION_ARGS)