GetAllDateTimes() static private method

static private GetAllDateTimes ( System.DateTime dateTime, DateTimeFormatInfo dtfi ) : String[]
dateTime System.DateTime
dtfi System.Globalization.DateTimeFormatInfo
return String[]
        // Token: 0x060015F2 RID: 5618 RVA: 0x00041624 File Offset: 0x0003F824
        internal static string[] GetAllDateTimes(DateTime dateTime, DateTimeFormatInfo dtfi)
        {
            List <string> list = new List <string>(132);

            for (int i = 0; i < DateTimeFormat.allStandardFormats.Length; i++)
            {
                string[] allDateTimes = DateTimeFormat.GetAllDateTimes(dateTime, DateTimeFormat.allStandardFormats[i], dtfi);
                for (int j = 0; j < allDateTimes.Length; j++)
                {
                    list.Add(allDateTimes[j]);
                }
            }
            string[] array = new string[list.Count];
            list.CopyTo(0, array, 0, list.Count);
            return(array);
        }
Beispiel #2
0
 public string[] GetDateTimeFormats(char format, IFormatProvider provider)
 {
     return(DateTimeFormat.GetAllDateTimes(this, format, DateTimeFormatInfo.GetInstance(provider)));
 }