Contents

Roo

DateTime.add_days()

Creates and returns a new DateTime object by adding the specified number of days to this DateTime object. This DateTime object is unaltered by the operation.

datetime.add_days(days As Number) as DateTime

Parameters

  • days. Number. The number of days to add to this DateTime object

Returns

  • A new DateTime object

Example

var bttf = DateTime(499137600) # Oct 26th 1985 01:20:00 AM.
var d = bttf.add_days(7)
print(d) # Nov 2nd 1985 02:20:00 AM.