Compare two hzXDate instances, A and B. Return 1 if A>B, -1 if A<B and 0 if A and B are equal

Return TypeFunction nameArguments
int32_thzXDate::datecmp(hzXDate&,hzXDate&,)

Declared in file: hzDate.h
Defined in file : hzDate.cpp

Function Logic:

0:START 1:unknown 2:Return 1 3:unknown 4:Return -1 5:unknown 6:Return 1 7:unknown 8:Return -1 9:Return 0

Function body:

int32_t hzXDate::datecmp (hzXDate& a)hzXDate& b, 
{
   //  Compare two hzXDate instances, A and B. Return 1 if A>B, -1 if A<B and 0 if A and B are equal
   //  
   //  Arguments: 1) a First date
   //     2) b Second date
   //  
   //  Returns: +1 If a > b
   //     -1 If a < b
   //     0 If a and b are equal
   if ( a.m_hour > b.m_hour)
       return 1;
   if (a.m_hour < b.m_hour)
       return -1;
   if (a.m_usec > b.m_usec)
       return 1;
   if (a.m_usec < b.m_usec)
       return -1;
   return 0;
   //  return a.m_hour > b.m_hour ?  1 : a.m_hour < b.m_hour ? -1 : a.m_usec > b.m_usec ?  1 : a.m_usec < b.m_usec ? -1 : 0 ;
}