Skip to main content

ffwd

Version of dateutil.relativedelta that only supports addition.

Attributes

AttributeTypeDescription
yearintThe specific calendar year to set when performing date addition.
monthintThe specific calendar month to set when performing date addition.
weeksint = 0The number of weeks to add to the date.
weekdayintThe target day of the week to advance to after other adjustments are applied.
dayintThe specific day of the month to set when performing date addition.
hourintThe specific hour of the day to set for the resulting time.
minuteintThe specific minute of the hour to set for the resulting time.
secondintThe specific second of the minute to set for the resulting time.
microsecondintThe specific microsecond to set for the resulting time.
daysintThe total number of days to add, calculated from the provided weeks.
_has_timeboolA boolean flag indicating if any time-related components (hour or minute) have been specified.

Constructor

Signature

def ffwd(
year: int = None,
month: int = None,
weeks: int = 0,
weekday: int = None,
day: int = None,
hour: int = None,
minute: int = None,
second: int = None,
microsecond: int = None,
**kwargs: Any
) - > null

Parameters

NameTypeDescription
yearint = NoneThe year component.
monthint = NoneThe month component.
weeksint = 0The number of weeks to add.
weekdayint = NoneThe day of the week.
dayint = NoneThe day component.
hourint = NoneThe hour component.
minuteint = NoneThe minute component.
secondint = NoneThe second component.
microsecondint = NoneThe microsecond component.
**kwargsAnyAdditional keyword arguments.

Signature

def ffwd(
year: int | None = None,
month: int | None = None,
weeks: int = 0,
weekday: int | None = None,
day: int | None = None,
hour: int | None = None,
minute: int | None = None,
second: int | None = None,
microsecond: int | None = None,
kwargs: Any = null
) - > null

Parameters

NameTypeDescription
year`intNone` = None
month`intNone` = None
weeksint = 0The number of weeks to add to the date.
weekday`intNone` = None
day`intNone` = None
hour`intNone` = None
minute`intNone` = None
second`intNone` = None
microsecond`intNone` = None
kwargsAny = nullAdditional arguments for compatibility.