Fan.Sys.Month.abbr C# (CSharp) Method

abbr() public method

public abbr ( Locale locale ) : string
locale Locale
return string
        public string abbr(Locale locale)
        {
            return Env.cur().locale(Sys.m_sysPod, localeAbbrKey, name(), locale);
        }

Usage Example

Esempio n. 1
0
 /** Get a month by lowercase abbr or full name for this locale */
 internal Month monthByName(string name)
 {
     if (m_monthsByName == null)
     {
         Hashtable map = new Hashtable();
         for (int i = 0; i < Month.array.Length; ++i)
         {
             Month m = Month.array[i];
             map[FanStr.lower(m.abbr(this))] = m;
             map[FanStr.lower(m.full(this))] = m;
         }
         m_monthsByName = map;
     }
     return((Month)m_monthsByName[name]);
 }