DateTime :: operator< - Compare timestamps (less)
The operation compares the two timestamp values and returns true, when the first operand is smaller than 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
- Compare timestamp value with string timestamp
DateTime :: operator< ( sDate ) - Compare two timestamps
DateTime :: operator< ( cDateTime )
Implementation details
-
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.
to list
- sDate
- Date value in string format
-
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
to list
- cDateTime
- Time stamp