Return TypeFunction nameArguments
const hzStringDateFmt2Str(hzDateFmt,)

Declared and defined in file: hzDate.cpp

Function Logic:

0:START 1:fmt&FMT_DATE_DOW 2:hzChain::AddByte items 3:fmt&FMT_DATE_USA 4:hzChain::AddByte items 5:fmt&FMT_DATE_ABBR 6:hzChain::AddByte items 7:fmt&FMT_DATE_FULL 8:hzChain::AddByte items 9:fmt&FMT_DATE_DFLT 10:hzChain::AddByte items 11:fmt&FMT_DATE_STD 12:hzChain::AddByte items 13:fmt&FMT_DATE_NORM 14:hzChain::AddByte items 15:fmt&FMT_DATE_FULL 16:hzChain::AddByte items 17:fmt&FMT_TIME_DFLT 18:hzChain::AddByte items 19:fmt&FMT_TIME_STD 20:hzChain::AddByte items 21:fmt&FMT_TIME_USEC 22:hzChain::AddByte items 23:fmt&FMT_TZ_CODE 24:hzChain::AddByte items 25:fmt&FMT_TZ_NUM 26:hzChain::AddByte items 27:fmt&FMT_TZ_BOTH 28:hzChain::AddByte items hzChain::Size 29:Z.Size() 30:S 31:S 32:Return S

Function body:

const hzString DateFmt2Str (hzDateFmt fmt)
{
   hzChain     Z ;
   hzString    S ;
   //  Dates contrl flags
   if (fmt & FMT_DATE_DOW)     { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[1]; }
   if (fmt & FMT_DATE_USA)     { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[2]; }
   if (fmt & FMT_DATE_ABBR)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[3]; }
   if (fmt & FMT_DATE_FULL)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[4]; }
   //  Date only formats
   if (fmt & FMT_DATE_DFLT)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[5]; }
   if (fmt & FMT_DATE_STD)     { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[6]; }
   if (fmt & FMT_DATE_NORM)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[7]; }
   if (fmt & FMT_DATE_FULL)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[8]; }
   //  Time only formats
   if (fmt & FMT_TIME_DFLT)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[9]; }
   if (fmt & FMT_TIME_STD)     { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[10];}
   if (fmt & FMT_TIME_USEC)    { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[11];}
   //  Timezones (always last)
   if (fmt & FMT_TZ_CODE)      { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[12];}
   if (fmt & FMT_TZ_NUM)       { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[13];}
   if (fmt & FMT_TZ_BOTH)      { Z.AddByte(CHAR_PLUS) ; Z << s_dt_types[14];}
   if (Z.Size())
       S = Z ;
   else
       S = s_dt_types[FMT_DT_UNKNOWN] ;
   return S ;
}