Alter this short date by a number of days into future/past. The changed value will not be assumed if it amounts to an out of range date.

Return TypeFunction nameArguments
hzEcodehzSDate::AltDay(int32_t,)

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

Function Logic:

0:START 1:unknown 2:Return E_RANGE 3:unknown 4:Return E_RANGE 5:m_days 6:Return E_OK

Function body:

hzEcode hzSDate::AltDay (int32_t interval)
{
   //  Alter this short date by a number of days into future/past. The changed value will not be assumed if it amounts to an out of range date.
   //  
   //  Arguments: 1) interval Number of days into future/past
   //  
   //  Returns: E_RANGE If the supplied interval rendered this date invalid
   //     E_OK If the supplied interval was applied
   if (interval < 0&& (m_days + interval) < 0)
       return E_RANGE ;
   if ((m_days + interval) > DAYS_IN_10K)
       return E_RANGE ;
   m_days += interval ;
   return E_OK ;
}