Database :: toMajorVersion - Get major version number for the time point
When any kind of managed versioning is enabled ( versioningMode() ), the function returns the major version number that includes the time point passed in cDateTime . Otherwise, the function returns -1 .
Return value: Major version number ( int32 )
Major versions are defined on database level. database versions are numbered consecutively beginning with 0, when consistent versioning has been enabled.
Implementation details
int32
Database  :: toMajorVersion ( odaba::DateTime &cDateTime )
- cDateTime
- Time stamp
A time stamp combines date and time