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