company logo

DateTime :: subtractDays - Subtract days from date value

The function subtracts a number of days from 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  :: subtractDays ( int32 iDays )

The number of days passed in iDays is subtracted from 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.