company logo

DateTime :: addWorkingDays - Add number of working days

This is a simplified version of the function, which considers all days from Monday to Friday as working days.

In order to obtain the nearest working day (after), one may pass 0 in iDays. When the day in the date value is a working day already, it remains unchanged in this case.

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

A time stamp combines date and time

Implementation details

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

The function adds the number of working days passed in iDays to the date value. Passing a negative value in iDays, the number of days will be subtracted (subtractWorkingDays()).

  • 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.