52 references to DateTimeFormat
mscorlib (52)
system\datetime.cs (10)
1424return DateTimeFormat.Format(this, "D", DateTimeFormatInfo.CurrentInfo); 1429return DateTimeFormat.Format(this, "T", DateTimeFormatInfo.CurrentInfo); 1434return DateTimeFormat.Format(this, "d", DateTimeFormatInfo.CurrentInfo); 1439return DateTimeFormat.Format(this, "t", DateTimeFormatInfo.CurrentInfo); 1444return DateTimeFormat.Format(this, null, DateTimeFormatInfo.CurrentInfo); 1449return DateTimeFormat.Format(this, format, DateTimeFormatInfo.CurrentInfo); 1454return DateTimeFormat.Format(this, null, DateTimeFormatInfo.GetInstance(provider)); 1459return DateTimeFormat.Format(this, format, DateTimeFormatInfo.GetInstance(provider)); 1547return (DateTimeFormat.GetAllDateTimes(this, DateTimeFormatInfo.GetInstance(provider))); 1566return (DateTimeFormat.GetAllDateTimes(this, format, DateTimeFormatInfo.GetInstance(provider)));
system\datetimeoffset.cs (4)
705return DateTimeFormat.Format(ClockDateTime, null, DateTimeFormatInfo.CurrentInfo, Offset); 710return DateTimeFormat.Format(ClockDateTime, format, DateTimeFormatInfo.CurrentInfo, Offset); 715return DateTimeFormat.Format(ClockDateTime, null, DateTimeFormatInfo.GetInstance(formatProvider), Offset); 720return DateTimeFormat.Format(ClockDateTime, format, DateTimeFormatInfo.GetInstance(formatProvider), Offset);
system\globalization\datetimeformatinfo.cs (3)
1686for (int i = 0; i < DateTimeFormat.allStandardFormats.Length; i++) 1688String[] strings = GetAllDateTimePatterns(DateTimeFormat.allStandardFormats[i]); 1730result = new String[] {DateTimeFormat.RoundtripFormat};
system\globalization\datetimeparse.cs (2)
3494return (DateTimeFormat.GetRealFormat(format, dtfi)); 3675if (tokenLen <= DateTimeFormat.MaxSecondsFractionDigits) {
system\globalization\timespanformat.cs (23)
97fraction = (int)((long)fraction / (long)Math.Pow(10, DateTimeFormat.MaxSecondsFractionDigits - literal.ff)); 126sb.Append((fraction).ToString(DateTimeFormat.fixedNumberFormats[effectiveDigits - 1], CultureInfo.InvariantCulture)); 172tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 175DateTimeFormat.FormatDigits(result, hours, tokenLen); 178tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 181DateTimeFormat.FormatDigits(result, minutes, tokenLen); 184tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 187DateTimeFormat.FormatDigits(result, seconds, tokenLen); 193tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 194if (tokenLen > DateTimeFormat.MaxSecondsFractionDigits) 198tmp /= (long)Math.Pow(10, DateTimeFormat.MaxSecondsFractionDigits - tokenLen); 199result.Append((tmp).ToString(DateTimeFormat.fixedNumberFormats[tokenLen - 1], CultureInfo.InvariantCulture)); 205tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 206if (tokenLen > DateTimeFormat.MaxSecondsFractionDigits) 210tmp /= (long)Math.Pow(10, DateTimeFormat.MaxSecondsFractionDigits - tokenLen); 222result.Append((tmp).ToString(DateTimeFormat.fixedNumberFormats[effectiveDigits - 1], CultureInfo.InvariantCulture)); 230tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 233DateTimeFormat.FormatDigits(result, day, tokenLen, true); 238tokenLen = DateTimeFormat.ParseQuoteString(format, i, enquotedString); 245nextChar = DateTimeFormat.ParseNextChar(format, i); 265nextChar = DateTimeFormat.ParseNextChar(format, i); 347x.ff = DateTimeFormat.MaxSecondsFractionDigits; 465ff = DateTimeFormat.MaxSecondsFractionDigits;
system\globalization\timespanparse.cs (10)
1196tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 1204tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 1212tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 1220tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 1221if (tokenLen > DateTimeFormat.MaxSecondsFractionDigits || seenFF || !ParseExactDigits(ref tokenizer, tokenLen, tokenLen, out leadingZeroes, out ff)) { 1228tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 1229if (tokenLen > DateTimeFormat.MaxSecondsFractionDigits || seenFF) { 1237tokenLen = DateTimeFormat.ParseRepeatPattern(format, i, ch); 1261nextFormatChar = DateTimeFormat.ParseNextChar(format, i); 1278nextFormatChar = DateTimeFormat.ParseNextChar(format, i);