company logo

DateTime :: subtractHours - Subtract hours from time value

The function subtracts a number of hours 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  :: subtractHours ( int32 iHours )

The number of hours passed in iHours is subtracted from the time value. Time values might become negative.

  • iHours - Hours

    Time span in hours.