company logo

DateTime :: operator- - Subtract timestamp value

The function returns the timestamp difference measured in centiseconds. When the difference between timestamps is greater than 247 or less than -247 days, the function throws an exception.

Return value:  Centiseconds ( int32  )

Time span in hundredths of a second or centiseconds in a time value.

Implementation details

int32 DateTime  :: operator- ( odaba::DateTime &cDateTime )

The difference is calculated by subtracting centiseconds of the timestamp passed from centiseconds for the current timestamp.

  • cDateTime - Time stamp

    A time stamp combines date and time