41 references to TimeSpanFormat
System.Private.CoreLib (41)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs (5)
32TimeSpanFormat.StandardFormat sf = TimeSpanFormat.StandardFormat.C; 41sf = TimeSpanFormat.StandardFormat.g; 45sf = TimeSpanFormat.StandardFormat.G; 53return TimeSpanFormat.TryFormatStandard(value, sf, decimalSeparator, destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (31)
277internal TimeSpanFormat.FormatLiterals PositiveLocalized 291internal TimeSpanFormat.FormatLiterals NegativeLocalized 305internal bool FullAppCompatMatch(TimeSpanFormat.FormatLiterals pattern) => 314internal bool PartialAppCompatMatch(TimeSpanFormat.FormatLiterals pattern) => 323internal bool FullMatch(TimeSpanFormat.FormatLiterals pattern) => 334internal bool FullDMatch(TimeSpanFormat.FormatLiterals pattern) => 341internal bool FullHMMatch(TimeSpanFormat.FormatLiterals pattern) => 349internal bool FullDHMMatch(TimeSpanFormat.FormatLiterals pattern) => 358internal bool FullHMSMatch(TimeSpanFormat.FormatLiterals pattern) => 367internal bool FullDHMSMatch(TimeSpanFormat.FormatLiterals pattern) => 377internal bool FullHMSFMatch(TimeSpanFormat.FormatLiterals pattern) => 391private TimeSpanFormat.FormatLiterals _posLoc; 392private TimeSpanFormat.FormatLiterals _negLoc; 783if (raw.FullMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 788if (!match && raw.FullMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 855if (raw.FullHMSFMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 862if (!match && raw.FullDHMSMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 869if (!match && raw.FullAppCompatMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 876if (!match && raw.FullHMSFMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 883if (!match && raw.FullDHMSMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 890if (!match && raw.FullAppCompatMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 981if (raw.FullHMSMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 988if (!match && raw.FullDHMMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 995if (!match && raw.PartialAppCompatMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 1002if (!match && raw.FullHMSMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 1009if (!match && raw.FullDHMMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 1016if (!match && raw.PartialAppCompatMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 1105if (raw.FullHMMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 1111if (!match && raw.FullHMMatch(TimeSpanFormat.NegativeInvariantFormatLiterals)) 1174if (raw.FullDMatch(TimeSpanFormat.PositiveInvariantFormatLiterals)) 1180if (!match && raw.FullDMatch(TimeSpanFormat.NegativeInvariantFormatLiterals))
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (5)
861public override string ToString() => TimeSpanFormat.FormatC(this); 862public string ToString([StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string? format) => TimeSpanFormat.Format(this, format, null); 863public string ToString([StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string? format, IFormatProvider? formatProvider) => TimeSpanFormat.Format(this, format, formatProvider); 866=> TimeSpanFormat.TryFormat(this, destination, out charsWritten, format, formatProvider); 870=> TimeSpanFormat.TryFormat(this, utf8Destination, out bytesWritten, format, formatProvider);