company logo

DateTime :: operator== - Compare timestamps (equal)

The operation compares the two timestamp values and returns true , when the first operand is equal to then the second operand and false otherwise.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false .

Implementation overview

Implementation details

  1. Compare timestamp value with string timestamp
    bool DateTime  :: operator== ( odaba::String &sDate )

    The function compares the timestamp value with the timestamp passed in sDateTime .

    • sDate - Date value in string format

      Date values can be passed in different ways as string value:

      Standard: yyyy-mm-dd or yyyymmdd

      English: mm/dd/yyyy

      German: dd.mm.yyyy

      The type of date is determined from the separator used.

  2. to list
  3. Compare two timestamps
    bool DateTime  :: operator== ( odaba::DateTime &cDateTime )

    The function compares the date value with the date value passed in cDateTime .

    • cDateTime - Time stamp

      A time stamp combines date and time

  4. to list