company logo

DateTime :: addDays - Add days to date value

The function adds a number of days to the current date and returns the new timestamp value.

Return value:  Time stamp ( odaba::DateTime & )

A time stamp combines date and time

Implementation details

odaba::DateTime & DateTime  :: addDays ( int32 iDays )

The number of days passed in iDays is added to the current date value. Month and year may change when number of days crosses month or year boundary.

  • iDays - Set date from days

    The function calculates the date from the number of days passed in iDayNum. The value must be greater than 0.