Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Returns the given date offset by the given number of days. The offset value can be positive, zero, or negative.

Namespace

datetime

Input

base date(date), day offset(int)

Output

date(date)

Example

If basedate contains 2011-08-18 and daysoffset contains the value 2, then the two following functions are equivalent, and return the date 2011–08–20.

...