Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

AddDays

func AddDays(date: Date, days: int) -> Result<Date, InvalidDateError>

Declaring type: Calendar
Module: System.Time
Assembly: System.Runtime.dll
Source file: Calendar.rvn

Advances absolute days, validating input and result against the calendar range.

Parameters

Name Type Description
date Date Starting day in the selected calendar range.
days Int32 Signed amount; extreme offsets fail without integer wraparound.

Return value

Result<Date, InvalidDateError>

Ok(Date), or InvalidDateError when input or result is outside the supported range.